TsgcHTTP_OAuth2_ServerMethods › UnRegisterApp

UnRegisterApp Method

Removes a previously registered OAuth 2.0 client application from the server.

Syntax

function UnRegisterApp(const aName: string): Boolean;

Parameters

NameTypeDescription
aNameconst stringLogical name of the application to remove. Must match the value used in RegisterApp.

Return Value

Returns True when the application is found and removed; False when no application with the supplied name exists. (Boolean)

Remarks

Removing the application invalidates future authorization requests that reference it, but does not automatically drop tokens already issued under that application. Call RemoveToken / RemoveTokenByRefreshToken when you also want to revoke existing tokens.

Example

// Drop an application at runtime
OAuth2.UnRegisterApp('MyApp');

Back to Methods