TsgcHTTP_OAuth2_Server_Provider › Methods

TsgcHTTP_OAuth2_Server_Provider Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Tokens

NameDescription
AddTokenInserts an externally-issued access/refresh token into the Resource Server token cache so subsequent Bearer-token validations succeed without a round-trip to the external identity provider.
RemoveTokenRevokes a Bearer token currently held in the Resource Server cache, looking it up by the server-side session identifier.
IsOAuth2TokenValidValidates the Bearer token presented with an inbound request against the Resource Server cache, either by parsing the request headers or by taking the raw token string.
IsPrivateEndpointReturns whether a given URL is flagged as private and therefore requires a valid Bearer token / session cookie to be served.

HTTP verbs

NameDescription
GetSends an HTTP GET request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
PostSends an HTTP POST request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
PutSends an HTTP PUT request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
DeleteSends an HTTP DELETE request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
PatchSends an HTTP PATCH request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.

Apps

NameDescription
RegisterAppRegisters an OAuth 2.0 client application on the Resource Server and returns its generated credentials.
UnRegisterAppRemoves a previously registered OAuth 2.0 client application from the Resource Server.

Providers

NameDescription
RegisterProviderRegisters an external OAuth 2.0 identity provider (Azure AD, Google, Microsoft, Facebook, GitHub...) so the Resource Server can delegate user sign-in to it.
UnRegisterProviderRemoves a previously registered external identity provider from the Resource Server.
ClearProvidersRemoves every external identity provider currently registered in the Resource Server federation list.

Advanced

NameDescription
DoProcessHTTPMain HTTP pipeline hook that validates the Bearer token on inbound requests, dispatches provider login/callback URLs and enforces protection of private endpoints.

All Methods (alphabetical)

NameDescription
AddTokenInserts an externally-issued access/refresh token into the Resource Server token cache so subsequent Bearer-token validations succeed without a round-trip to the external identity provider.
ClearProvidersRemoves every external identity provider currently registered in the Resource Server federation list.
DeleteSends an HTTP DELETE request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
DoProcessHTTPMain HTTP pipeline hook that validates the Bearer token on inbound requests, dispatches provider login/callback URLs and enforces protection of private endpoints.
GetSends an HTTP GET request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
IsOAuth2TokenValidValidates the Bearer token presented with an inbound request against the Resource Server cache, either by parsing the request headers or by taking the raw token string.
IsPrivateEndpointReturns whether a given URL is flagged as private and therefore requires a valid Bearer token / session cookie to be served.
PatchSends an HTTP PATCH request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
PostSends an HTTP POST request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
PutSends an HTTP PUT request to a remote URL through the Resource Server OAuth2 pipeline, injecting the Bearer token (and DPoP proof when enabled) that matches the caller's session.
RegisterAppRegisters an OAuth 2.0 client application on the Resource Server and returns its generated credentials.
RegisterProviderRegisters an external OAuth 2.0 identity provider (Azure AD, Google, Microsoft, Facebook, GitHub...) so the Resource Server can delegate user sign-in to it.
RemoveTokenRevokes a Bearer token currently held in the Resource Server cache, looking it up by the server-side session identifier.
UnRegisterAppRemoves a previously registered OAuth 2.0 client application from the Resource Server.
UnRegisterProviderRemoves a previously registered external identity provider from the Resource Server.