TsgcHTTP_OAuth2_ServerMethods › UnRegisterProvider

UnRegisterProvider Method

Removes a previously registered external identity provider from the server.

Syntax

function UnRegisterProvider(const aName: string): Boolean;

Parameters

NameTypeDescription
aNameconst stringUnique name of the provider to remove (for example, 'Google'). Must match the value used in RegisterProvider.

Return Value

Returns True when the provider is found and removed; False when no matching provider exists. (Boolean)

Remarks

After removal, the provider is no longer offered on the federated sign-in page and subsequent callbacks for that provider are rejected. Use ClearProviders to drop all providers at once.

Example

// Disable Google federated login
OAuth2.UnRegisterProvider('Google');

Back to Methods