Class ParsedSecret
- Namespace
- Fdyay.IdentityServer.Models
- Assembly
- Fdyay.IdentityServer.Core.dll
A client or API credential taken off a request, before it has been checked against what is stored.
public sealed class ParsedSecret
- Inheritance
-
ParsedSecret
- Inherited Members
Remarks
Parsing and validating are separate so that a new way of presenting a credential — a signed assertion, a client certificate — is a new parser rather than another branch inside every endpoint. Type is what pairs the two halves up: each validator handles the parsed types it understands and declines the rest.
Properties
Credential
The credential itself. A shared secret is the string; a JWT bearer assertion is the encoded token.
public object? Credential { get; set; }
Property Value
Remarks
Typed as object because what a credential is depends on how it was presented.
Id
The client or API identifier the credential claims to belong to.
public string Id { get; set; }
Property Value
Properties
Anything else the parser learned that a validator may need.
public IDictionary<string, string> Properties { get; }
Property Value
Type
Which kind of credential this is, from IdentityServerConstants.ParsedSecretTypes.
public string Type { get; set; }