ID_TOKEN Cache

Key:Value Schema:

Key Example: uid.utid-login.microsoftonline.com-idtoken-clientId-contoso.com-

Value Schema: { homeAccountId: home account identifier for the auth scheme, environment: entity that issued the token, represented as a full host credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other clientId: client ID of the application secret: Actual credential as a string realm: Full tenant or organizational identifier that the account belongs to }

Hierarchy

Constructors

Properties

clientId: string
credentialType: CredentialType
environment: string
familyId?: string
homeAccountId: string
keyId?: string
realm: string
requestedClaimsHash?: string
secret: string
target?: string
userAssertionHash?: string

Methods

  • generates credential key <home_account_id*>-<environment>---<realm*>-<target*>-<scheme*>

    Parameters

    • homeAccountId: string
    • environment: string
    • credentialType: CredentialType
    • clientId: string
    • Optional realm: string
    • Optional target: string
    • Optional familyId: string
    • Optional tokenType: AuthenticationScheme
    • Optional requestedClaimsHash: string

    Returns string

  • Validates an entity: checks for all expected params

    Parameters

    • entity: object

    Returns boolean

Generated using TypeDoc