Class JwtBearerClientAssertionSecretParser
- Namespace
- Duende.IdentityServer.Validation
- Assembly
- Duende.IdentityServer.dll
Parses a POST body for a JWT bearer client assertion
public class JwtBearerClientAssertionSecretParser : ISecretParser
- Inheritance
-
JwtBearerClientAssertionSecretParser
- Implements
- Inherited Members
Constructors
JwtBearerClientAssertionSecretParser(IdentityServerOptions, ILogger<JwtBearerClientAssertionSecretParser>)
Initializes a new instance of the JwtBearerClientAssertionSecretParser class.
public JwtBearerClientAssertionSecretParser(IdentityServerOptions options, ILogger<JwtBearerClientAssertionSecretParser> logger)
Parameters
options
IdentityServerOptionsThe options.
logger
ILogger<JwtBearerClientAssertionSecretParser>The logger.
Properties
AuthenticationMethod
Returns the authentication method name that this parser implements
public string AuthenticationMethod { get; }
Property Value
- string
The authentication method.
Methods
ParseAsync(HttpContext)
Tries to find a JWT client assertion token in the request body that can be used for authentication Used for "private_key_jwt" client authentication method as defined in http://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication
public Task<ParsedSecret> ParseAsync(HttpContext context)
Parameters
context
HttpContextThe HTTP context
Returns
- Task<ParsedSecret>
A parsed secret