Table of Contents

TExternalUserProvisionedArgs Class

Arguments passed to the OnExternalUserProvisioned event, fired when the built-in reconciliation policy creates a brand new local user for an external (upstream) identity.

Remarks

This event gives the application a chance to complete the freshly created account (e.g. assign roles, copy additional profile fields from AuthResult) before the sign-in proceeds. The user has already been created and linked to the external identity. It only fires when ExternalLoginOptions.AllowAutoProvision is enabled and the policy actually provisions a user; it does not fire when an OnExternalSignIn handler supplies the user.

Syntax

Unit: Sphinx.EventArgs

TExternalUserProvisionedArgs = class(TSphinxModuleArgs);

Properties

Name Description
AuthResult The tokens and profile obtained from the upstream provider for this sign-in.
ProviderName The name of the upstream provider that authenticated the user.
User The local user that was just provisioned and linked to the external identity.
UserManager The user manager bound to the current request.