IAccessTokenService Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Tokens
IAccessTokenService Interface
Issues OAuth 2.0 access tokens as signed JWTs (RFC 9068 access-token format) and reverses the mapping by reconstructing the originating AuthSession and AuthorizationContext from the token's claims.
public interface IAccessTokenService
Methods
IAccessTokenService.AuthenticateByAccessTokenAsync(JsonWebToken) Method
Asynchronously authenticates a user based on a provided access token.
System.Threading.Tasks.Task<(Abblix.Oidc.Server.Features.UserAuthentication.AuthSession,Abblix.Oidc.Server.Common.AuthorizationContext)> AuthenticateByAccessTokenAsync(Abblix.Jwt.JsonWebToken accessToken);
Parameters
accessToken JsonWebToken
The access token to authenticate.
Returns
System.Threading.Tasks.Task<<AuthSession,AuthorizationContext>>
A task that represents the asynchronous authentication operation. The task result contains
the AuthSession and AuthorizationContext associated with the authenticated user.
IAccessTokenService.CreateAccessTokenAsync(AuthSession, AuthorizationContext, ClientInfo) Method
Asynchronously creates a new access token based on the given authentication session, authorization context and client information.
System.Threading.Tasks.Task<Abblix.Oidc.Server.Features.Tokens.EncodedJsonWebToken> CreateAccessTokenAsync(Abblix.Oidc.Server.Features.UserAuthentication.AuthSession authSession, Abblix.Oidc.Server.Common.AuthorizationContext authContext, Abblix.Oidc.Server.Features.ClientInformation.ClientInfo clientInfo);
Parameters
authSession AuthSession
The authentication session containing user and session details.
authContext AuthorizationContext
The authorization context containing details about the granted permissions and scopes.
clientInfo ClientInfo
Information about the client for whom the token is being created.
Returns
System.Threading.Tasks.Task<EncodedJsonWebToken>
A task that represents the asynchronous create operation.
The task result contains the newly created JsonWebToken.