| Authorization Code | OAuth2Options.GrantType := auth2Code | The standard flow for trusted server-side web applications that can hold a client secret. |
| Authorization Code + PKCE | auth2CodePKCE (RFC 7636) | The same flow with a Proof Key for Code Exchange, for native, mobile and single-page apps that cannot keep a secret. |
| Client Credentials | auth2ClientCredentials | Server-to-server calls with no user in the loop: daemons and service accounts. |
| Resource Owner Password | auth2ResourceOwnerPassword | The application collects the user's password directly and exchanges it for a token. |
| Device Code | auth2DeviceCode (RFC 8628) | For input-constrained devices, smart TVs, media consoles, IoT: shows a user code the person enters on a second device. |
| Client identity | OAuth2Options.ClientId, ClientSecret, Username, Password | Set per your provider's API specification; Username/Password cover providers that require Basic Authentication on the token endpoint. |
| Provider endpoints | AuthorizationServerOptions.AuthURL, TokenURL, Scope, RevocationURL, IntrospectionURL | The URLs and scope list published in your provider's OAuth2/OIDC documentation. |
| Social presets | TsgcHTTP_OAuth2_Client_Google, TsgcHTTP_OAuth2_Client_Microsoft | Ready-made descendants that pre-configure the Google and Microsoft endpoints and scopes. |
| Local redirect listener | LocalServerOptions.IP, Port, RedirectURL | The small HTTP server the component starts to receive the authorization-code redirect; defaults to port 8080, or 0 to pick a random port for desktop apps. |
| Run the flow | Start, Stop | Start opens the system browser (or issues the device code) and begins the configured grant; Stop aborts it and shuts the local listener. |
| Refresh | Refresh | Exchanges a refresh token for a new access token without another browser round trip. |
| Revoke & introspect | Revoke (RFC 7009), Introspect (RFC 7662) | Invalidate a token, or query its status and metadata at the provider. |
| DPoP | DPoPOptions, GenerateDPoPKeyPair, OnDPoPSign | Demonstrating Proof-of-Possession (RFC 9449) key material and signing, for providers that bind tokens to a key pair. |
| HTTP transport | HTTPClientOptions | TLS and logging configuration for the internal HTTP client that POSTs to the token, revocation and introspection endpoints. |
| Lifecycle events | OnBeforeAuthorizeCode, OnAfterAuthorizeCode, OnBeforeAccessToken, OnAfterAccessToken, OnBeforeRefreshToken, OnAfterRefreshToken | Before/after pairs around each step of the flow. |
| Error events | OnErrorAccessToken, OnErrorAuthorizeCode, OnErrorRefreshToken, OnErrorRevokeToken, OnErrorIntrospectToken | One per failure point in the flow, each carrying the provider's error, description and URI. |
| Device Code events | OnDeviceCode, OnDeviceCodeExpired | Delivers the user code and verification URI to display, and fires if the user does not complete authorization in time. |