TsgcHTTP_OAuth2_ClientMethods › Stop

Stop Method

Aborts any pending OAuth2 flow and shuts the local redirect server.

Syntax

procedure Stop;

Remarks

Cancels any in-progress authorization flow started by Start, stops the internal HTTP server listening on the redirect URL, and cancels device-code polling timers. Safe to call even if no flow is active. Call this when the user cancels the login, when the component is shutting down, or before reconfiguring the authentication type.

Example

oAuth2.Stop;

Back to Methods