Table of Contents

Class BasicAuthenticationSecretParser

Namespace
Duende.IdentityServer.Validation
Assembly
Duende.IdentityServer.dll

Parses a Basic Authentication header

public class BasicAuthenticationSecretParser : ISecretParser
Inheritance
BasicAuthenticationSecretParser
Implements
Inherited Members

Constructors

BasicAuthenticationSecretParser(IdentityServerOptions, ILogger<BasicAuthenticationSecretParser>)

Creates the parser with a reference to identity server options

public BasicAuthenticationSecretParser(IdentityServerOptions options, ILogger<BasicAuthenticationSecretParser> logger)

Parameters

options IdentityServerOptions

IdentityServer options

logger ILogger<BasicAuthenticationSecretParser>

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 secret that can be used for authentication

public Task<ParsedSecret> ParseAsync(HttpContext context)

Parameters

context HttpContext

Returns

Task<ParsedSecret>

A parsed secret