Class PostBodySecretParser
- Namespace
- Duende.IdentityServer.Validation
- Assembly
- Duende.IdentityServer.dll
Parses a POST body for secrets
public class PostBodySecretParser : ISecretParser
- Inheritance
-
PostBodySecretParser
- Implements
- Inherited Members
Constructors
PostBodySecretParser(IdentityServerOptions, ILogger<PostBodySecretParser>)
Creates the parser with options
public PostBodySecretParser(IdentityServerOptions options, ILogger<PostBodySecretParser> logger)
Parameters
options
IdentityServerOptionsIdentityServer options
logger
ILogger<PostBodySecretParser>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 secret on the context that can be used for authentication
public Task<ParsedSecret> ParseAsync(HttpContext context)
Parameters
context
HttpContextThe HTTP context.
Returns
- Task<ParsedSecret>
A parsed secret