Table of Contents

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 IdentityServerOptions

IdentityServer 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 HttpContext

The HTTP context.

Returns

Task<ParsedSecret>

A parsed secret