TsgcHTTP_OAuth2_ServerProperties › OAuth2Options

OAuth2Options Property

Authorization-server configuration: endpoint URLs, token lifetimes, PKCE, DPoP, revocation, introspection and device-code settings.

Syntax

property OAuth2Options: TsgcHTTPOAuth2Server_Options read FOAuth2Options write SetOAuth2Options;

Default Value

PKCE=True; DPoP=False; default endpoints under /sgc/oauth2/*.

Remarks

Groups the published sub-properties that tune how the OAuth 2.0 authorization server issues and validates tokens:

Apps (ClientId/ClientSecret/RedirectURI/AllowedGrantTypes) and JWKS/provider metadata are handled on the component's Apps and related properties, not under OAuth2Options.

Example


OAuth2.OAuth2Options.Authorization.URL := '/sgc/oauth2/auth';
OAuth2.OAuth2Options.Token.URL := '/sgc/oauth2/token';
OAuth2.OAuth2Options.PKCE := True;
OAuth2.OAuth2Options.DPoP := True;
OAuth2.OAuth2Options.Revocation.Enabled := True;
OAuth2.OAuth2Options.Introspection.Enabled := True;
OAuth2.OAuth2Options.DeviceAuthorization.Enabled := True;
OAuth2.OAuth2Options.DeviceAuthorization.ExpiresIn := 600;
OAuth2.OAuth2Options.DeviceAuthorization.Interval := 5;

Back to Properties