IOpenIDConnectToken

References
public interface IOpenIDConnectToken
This class represents an OpenIDConnect token issued from an OpenID provider. The token is immutable.

Properties

AdminGroups

#Since v7.0
Returns all the groups the user is an admin of.

AllGroups

#Since v7.0
Returns all the groups the user is a member of.

AtHash

#Since v7.0
string AtHash { get; }
Access Token hash value. Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII representation of the access_token value, where the hash algorithm used is the hash algorithm used in the alg Header Parameter of the ID Token's JOSE Header. For instance, if the alg is RS256, hash the access_token value with SHA-256, then take the left-most 128 bits and base64url encode them. The at_hash value is a case sensitive string.

Aud

#Since v7.0
string Aud { get; }
The id of the client (the audience) this token is intended for.

AuthTime

#Since v7.0
DateTime? AuthTime { get; }
Time when the End-User authentication occurred

Emails

#Since v7.0
IReadOnlyCollection<string> Emails { get; }
All the emails belonging to the account the token represents.

EmailVerified

#Since v7.0
bool? EmailVerified { get; }
true if all the emails in the account have been verified; false otherwise.

Exp

#Since v7.0
DateTime? Exp { get; }
The date the token expires.

Iat

#Since v7.0
DateTime? Iat { get; }
The date the token was issued.

IsExpired

#Since v7.0
bool IsExpired { get; }
true if the token is expired; false otherwise.

Iss

#Since v7.0
string Iss { get; }
The id of the entity that issued the token.

IsUpdated

#Since v7.0
bool IsUpdated { get; }
true if the token has been updated; false otherwise.

Locale

#Since v7.0
string Locale { get; }
The local of the user this token represents. ISO 639-1 Alpha-2 [ISO639‑1] language code and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in, separated by a dash.

MemberGroups

#Since v7.0
Returns all the groups the user is a member of, but not an admin or an owner.

Name

#Since v7.0
string Name { get; }
The name of the user this token represents.

Nonce

#Since v7.0
string Nonce { get; }
String value used to associate a Client session with an ID Token, and to mitigate replay attacks

OwnerGroups

#Since v7.0
Returns all the groups the user is an owner of.

Phone

#Since v7.0
string Phone { get; }
The phone of the user this token represents.

Picture

#Since v7.0
string Picture { get; }
The url of a picture/avatar/icon of the user this token represents.

RawToken

#Since v7.0
string RawToken { get; }
The raw OpenIDConnect token.

Sub

#Since v7.0
string Sub { get; }
The unique id for the subject this token represents.

UpdatedAt

#Since v7.0
DateTime? UpdatedAt { get; }
The last time the token was updated.