Table of Contents

TSphinxConfig.OnGetExternalProvider Event

Event used to accept and configure upstream (external) identity providers dynamically, the same way OnGetClient works for client applications.

Remarks

Use this event when your providers are dynamic -- not known at design time, holding secrets that must not be stored in the form, or varying per tenant. Whenever Sphinx needs to resolve a provider by name (to start an interactive "Login with..." flow, to delegate transparently, or to complete an upstream callback), it creates a temporary TSphinxExternalProvider and sets its Name. If a provider with that name exists in ExternalProviders, its properties are copied into the temporary object and Accept is passed as True; otherwise Accept is False. The handler can then fill in (or override) any property of the provider and set Accept to True to use it or False to reject it. This is the single source of truth for a provider's properties, regardless of how the provider was reached.

Syntax

Unit: Sphinx.Comp.Config

property TSphinxConfig.OnGetExternalProvider: TGetExternalProviderEvent

See also