Table of Contents

Class ProfileDataRequestContext

Namespace
Fdyay.IdentityServer.Services
Assembly
Fdyay.IdentityServer.Core.dll
public class ProfileDataRequestContext
Inheritance
ProfileDataRequestContext
Inherited Members
Extension Methods

Constructors

ProfileDataRequestContext()

Creates an empty context, for a host building one itself. Duende's.

public ProfileDataRequestContext()

ProfileDataRequestContext(ClaimsPrincipal, Client, string, IEnumerable<string>)

Creates a context for a request being served for client.

public ProfileDataRequestContext(ClaimsPrincipal subject, Client client, string caller, IEnumerable<string> requestedClaimTypes)

Parameters

subject ClaimsPrincipal
client Client
caller string
requestedClaimTypes IEnumerable<string>

ProfileDataRequestContext(ClaimsPrincipal, IConnectedApplication, string, IEnumerable<string>)

Creates a context for a request being served for application.

public ProfileDataRequestContext(ClaimsPrincipal subject, IConnectedApplication application, string caller, IEnumerable<string> requestedClaimTypes)

Parameters

subject ClaimsPrincipal
application IConnectedApplication
caller string
requestedClaimTypes IEnumerable<string>

Properties

Application

The application the profile data is requested for.

public IConnectedApplication Application { get; set; }

Property Value

IConnectedApplication

Caller

Identifies the endpoint requesting the data (e.g. userinfo, token).

public string Caller { get; set; }

Property Value

string

IssuedClaims

The claims the profile service decided to issue.

public List<Claim> IssuedClaims { get; set; }

Property Value

List<Claim>

ProtocolRequest

The validated request being served, when there is one: for a token, the token request.

public IValidatedRequest? ProtocolRequest { get; set; }

Property Value

IValidatedRequest

Remarks

Duende's. Pattern-match it to the concrete request — ValidatedTokenRequest — for its grant, its raw parameters and the rest.

RequestedClaimTypes

The claim types that were requested.

public IEnumerable<string> RequestedClaimTypes { get; set; }

Property Value

IEnumerable<string>

RequestedResources

The resources the request was validated for, when known. Duende's.

public ResourceValidationResult? RequestedResources { get; set; }

Property Value

ResourceValidationResult

SamlAttributes

SAML attributes to issue as they are, without the claim-to-attribute mapping. Duende's.

public List<SamlAttribute> SamlAttributes { get; }

Property Value

List<SamlAttribute>

Remarks

Read at SAML sign-on only, where the caller is Saml2SsoResponseGenerator: the attributes added here come first, and an IssuedClaims claim that maps to one of their names adds its value to it. The way to give an attribute a NameFormat or FriendlyName, which a claim cannot carry.

Subject

The authenticated user.

public ClaimsPrincipal Subject { get; set; }

Property Value

ClaimsPrincipal