Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityServer.​Services.​DefaultClaimsService
Assembly: Duende.IdentityServer
Inheritance: object → DefaultClaimsService
Implemented Interfaces
Default claims provider implementation
Fields and Constants
protected readonly
Microsoft.​Extensions.​Logging.​ILogger
Logger
The logger
protected readonly
IProfileService
Profile
The user service
Methods
public
System.​Threading.​Tasks.​Task<​System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim>>
GetIdentityTokenClaimsAsync​(System.​Security.​Claims.​ClaimsPrincipal subject,
Validation.​ResourceValidationResult resources,
bool includeAllIdentityClaims,
Validation.​ValidatedRequest request)
Returns claims for an identity token
Returns Claims for the identity token
subject
The subject
resources
The requested resources
includeAllIdentityClaims
Specifies if all claims should be included in the token, or if the userinfo endpoint can be used to retrieve them
request
The raw request
public
System.​Threading.​Tasks.​Task<​System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim>>
GetAccessTokenClaimsAsync​(System.​Security.​Claims.​ClaimsPrincipal subject,
Validation.​ResourceValidationResult resourceResult,
Validation.​ValidatedRequest request)
Returns claims for an access token.
Returns Claims for the access token
subject
The subject.
resourceResult
The validated resource result
request
The raw request.
protected
System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim>
GetStandardSubjectClaims​(System.​Security.​Claims.​ClaimsPrincipal subject)
Gets the standard subject claims.
Returns A list of standard claims
subject
The subject.
protected
System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim>
GetOptionalClaims​(System.​Security.​Claims.​ClaimsPrincipal subject)
Gets additional (and optional) claims from the cookie or incoming subject.
Returns Additional claims
subject
The subject.
protected
System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim>
FilterProtocolClaims​(System.​Collections.​Generic.​IEnumerable<​System.​Security.​Claims.​Claim> claims)
Filters out protocol claims like amr, nonce etc..
claims
The claims.
protected
System.​Collections.​Generic.​IEnumerable<​string>
FilterRequestedClaimTypes​(System.​Collections.​Generic.​IEnumerable<​string> claimTypes)
Filters out protocol claims like amr, nonce etc..
claimTypes
The claim types.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object