Wrapper for operating with OAuth 2.0 compatible Authorization servers to exchange, refresh, introspect and revoke tokens. Includes utility action to generate Proof Key Code Exchange.
The library exposes the following actions
Request access token with client credentials flow
Input parameters
Address
ClientId
ClientSecret
Scope
Result
AccessToken
IdentityToken
RequestedScope
IssuedTokenType
TokenType
RefreshToken
ExpiresOn
Exchange an authorization code for an access token
Code
RedirectUri
CodeVerifier
ExpiresIn
Refresh an access token with a refresh token
Revoke an access token
Token
Introspect an access token
isActive
Generates code verifier and challange for Proof Key Code Exchange Authorization code flow
CodeChallenge
CodeChallengeMethod
Retrieve OpenID Connect Configuration of Identity Provider
Policy
AuthorizationEndpoint
ClaimsSupported
Issuer
JwksUri
ResponseTypesSupported
GrantTypesSupported
ScopesSupported
TokenEndpoint
RevocationEndpoint
UserInfoEndpoint
IntrospectionEndpoint
EndSessionEndpoint
Source available here stefan-d-p/odc-oauthexchange-library: Wrapper for operating with OAuth 2.0 compatible Authorization servers to exchange, refresh, introspect and revoke tokens. Includes utility action to generate Proof Key Code Exchange. (github.com)