C# Class IdentityServer4.Contrib.AzureKeyVaultTokenSigningService.AzureKeyVaultTokenSigningService

Inheritance: ITokenSigningService
Afficher le fichier Open project: MattCotterellNZ/IdentityServer.Contrib.AzureKeyVaultTokenSigningService

Méthodes publiques

Méthode Description
AzureKeyVaultTokenSigningService ( IPublicKeyProvider publicKeyProvider, IOptions options ) : System

Initializes a new instance of the AzureKeyVaultTokenSigningService class.

SignTokenAsync ( IdentityServer4.Core.Models.Token token ) : Task

Signs the token.

Méthodes protégées

Méthode Description
CreateHeaderAsync ( IdentityServer4.Core.Models.Token token, AzureKeyVaultSigningCredentials keyVaultCredentials ) : Task

Creates the JWT header

CreateJsonWebToken ( IdentityServer4.Core.Models.Token token, AzureKeyVaultSigningCredentials credentials ) : Task

Creates the json web token.

CreatePayloadAsync ( IdentityServer4.Core.Models.Token token ) : Task

Creates the JWT payload

GetSigningCredentialsAsync ( ) : Task

Retrieves the signing credential (override to load key from alternative locations)

SignAsync ( System.IdentityModel.Tokens.JwtSecurityToken jwt ) : Task

Applies the signature to the JWT

Private Methods

Méthode Description
FromBase64Url ( string base64Url ) : byte[]

Method Details

AzureKeyVaultTokenSigningService() public méthode

Initializes a new instance of the AzureKeyVaultTokenSigningService class.
public AzureKeyVaultTokenSigningService ( IPublicKeyProvider publicKeyProvider, IOptions options ) : System
publicKeyProvider IPublicKeyProvider The public key provider.
options IOptions The options.
Résultat System

CreateHeaderAsync() protected méthode

Creates the JWT header
protected CreateHeaderAsync ( IdentityServer4.Core.Models.Token token, AzureKeyVaultSigningCredentials keyVaultCredentials ) : Task
token IdentityServer4.Core.Models.Token The token.
keyVaultCredentials AzureKeyVaultSigningCredentials The credentials.
Résultat Task

CreateJsonWebToken() protected méthode

Creates the json web token.
protected CreateJsonWebToken ( IdentityServer4.Core.Models.Token token, AzureKeyVaultSigningCredentials credentials ) : Task
token IdentityServer4.Core.Models.Token The token.
credentials AzureKeyVaultSigningCredentials The credentials.
Résultat Task

CreatePayloadAsync() protected méthode

Creates the JWT payload
protected CreatePayloadAsync ( IdentityServer4.Core.Models.Token token ) : Task
token IdentityServer4.Core.Models.Token The token.
Résultat Task

GetSigningCredentialsAsync() protected méthode

Retrieves the signing credential (override to load key from alternative locations)
protected GetSigningCredentialsAsync ( ) : Task
Résultat Task

SignAsync() protected méthode

Applies the signature to the JWT
protected SignAsync ( System.IdentityModel.Tokens.JwtSecurityToken jwt ) : Task
jwt System.IdentityModel.Tokens.JwtSecurityToken The JWT object.
Résultat Task

SignTokenAsync() public méthode

Signs the token.
public SignTokenAsync ( IdentityServer4.Core.Models.Token token ) : Task
token IdentityServer4.Core.Models.Token The token.
Résultat Task