TsgcHTTP_OAuth2_Server_Provider › Events

TsgcHTTP_OAuth2_Server_Provider Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Request pipeline

NameDescription
OnOAuth2BeforeRequestFires before the Resource Server processes any inbound HTTP request; lets the application inspect, rewrite or cancel the request before Bearer-token validation runs.
OnOAuth2IsPrivateEndpointFires when the Resource Server needs to decide whether a URL requires Bearer-token authentication; lets the application answer with a dynamic pattern match.

Token validation

NameDescription
OnOAuth2ProviderTokenValidFires after the Resource Server successfully validates an inbound Bearer token, giving the application a chance to inspect the token and customize the response.
OnOAuth2ProviderTokenUnknownFires after Bearer-token validation fails (missing, unknown or expired token), giving the application a chance to shape the 401 response sent back to the client.

All Events (alphabetical)

NameDescription
OnOAuth2BeforeRequestFires before the Resource Server processes any inbound HTTP request; lets the application inspect, rewrite or cancel the request before Bearer-token validation runs.
OnOAuth2IsPrivateEndpointFires when the Resource Server needs to decide whether a URL requires Bearer-token authentication; lets the application answer with a dynamic pattern match.
OnOAuth2ProviderTokenUnknownFires after Bearer-token validation fails (missing, unknown or expired token), giving the application a chance to shape the 401 response sent back to the client.
OnOAuth2ProviderTokenValidFires after the Resource Server successfully validates an inbound Bearer token, giving the application a chance to inspect the token and customize the response.