TsgcHTTP_OAuth2_Server › Methods

TsgcHTTP_OAuth2_Server Methods

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

Tokens

NameDescription
AddTokenPre-seeds an access/refresh token pair into the server token store for a registered application.
RemoveTokenRevokes a specific access token previously issued by the server.
RemoveTokenByRefreshTokenRevokes the token pair identified by its refresh token value.
IsOAuth2TokenValidValidates an incoming Bearer access token presented by the client, either by parsing the request headers or by taking the raw token string.
IsOAuth2UnauthorizedChecks whether a request on the given connection must be rejected with an OAuth 2.0 unauthorized response.

Apps

NameDescription
RegisterAppRegisters a new OAuth 2.0 client application on the server and returns its generated credentials.
UnRegisterAppRemoves a previously registered OAuth 2.0 client application from the server.

Providers

NameDescription
RegisterProviderRegisters an external identity provider (Google, GitHub, Microsoft, etc.) so the server can delegate federated sign-in to it.
UnRegisterProviderRemoves a previously registered external identity provider from the server.
ClearProvidersRemoves every external identity provider registered in the server federation list.

Advanced

NameDescription
DoProcessHTTPMain HTTP request pipeline hook that dispatches OAuth 2.0 protocol endpoints on the server.

All Methods (alphabetical)

NameDescription
AddTokenPre-seeds an access/refresh token pair into the server token store for a registered application.
ClearProvidersRemoves every external identity provider registered in the server federation list.
DoProcessHTTPMain HTTP request pipeline hook that dispatches OAuth 2.0 protocol endpoints on the server.
IsOAuth2TokenValidValidates an incoming Bearer access token presented by the client, either by parsing the request headers or by taking the raw token string.
IsOAuth2UnauthorizedChecks whether a request on the given connection must be rejected with an OAuth 2.0 unauthorized response.
RegisterAppRegisters a new OAuth 2.0 client application on the server and returns its generated credentials.
RegisterProviderRegisters an external identity provider (Google, GitHub, Microsoft, etc.) so the server can delegate federated sign-in to it.
RemoveTokenRevokes a specific access token previously issued by the server.
RemoveTokenByRefreshTokenRevokes the token pair identified by its refresh token value.
UnRegisterAppRemoves a previously registered OAuth 2.0 client application from the server.
UnRegisterProviderRemoves a previously registered external identity provider from the server.