TsgcHTTP_OAuth2_Server › Methods › UnRegisterApp
Removes a previously registered OAuth 2.0 client application from the server.
function UnRegisterApp(const aName: string): Boolean;
| Name | Type | Description |
|---|---|---|
aName | const string | Logical name of the application to remove. Must match the value used in RegisterApp. |
Returns True when the application is found and removed; False when no application with the supplied name exists. (Boolean)
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.
// Drop an application at runtime
OAuth2.UnRegisterApp('MyApp');