Class ProfileDataRequestContext
- Namespace
- Fdyay.IdentityServer.Services
- Assembly
- Fdyay.IdentityServer.Core.dll
Context passed to GetProfileDataAsync(ProfileDataRequestContext, CancellationToken).
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
subjectClaimsPrincipalclientClientcallerstringrequestedClaimTypesIEnumerable<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
subjectClaimsPrincipalapplicationIConnectedApplicationcallerstringrequestedClaimTypesIEnumerable<string>
Properties
Application
The application the profile data is requested for.
public IConnectedApplication Application { get; set; }
Property Value
Caller
Identifies the endpoint requesting the data (e.g. userinfo, token).
public string Caller { get; set; }
Property Value
IssuedClaims
The claims the profile service decided to issue.
public List<Claim> IssuedClaims { get; set; }
Property Value
ProtocolRequest
The validated request being served, when there is one: for a token, the token request.
public IValidatedRequest? ProtocolRequest { get; set; }
Property Value
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
RequestedResources
The resources the request was validated for, when known. Duende's.
public ResourceValidationResult? RequestedResources { get; set; }
Property Value
SamlAttributes
SAML attributes to issue as they are, without the claim-to-attribute mapping. Duende's.
public List<SamlAttribute> SamlAttributes { get; }
Property Value
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; }