Decodes a JSON Web Token (JWT) to a JavaScript object.
any
): any
any
- Token in encoded formany
- Decoded token data objectstring
string
- access tokenstring
): string[]
string
- string[]
- Array of client rolesstring
string
- id tokenstring[]
string[]
- Array of realm rolesstring
)string
- Key name of the field to retrievestring
)string
- Key name of the field to retrievestring
)string
- Key name of the field to retrievestring
, key: string
)string
- string
- Key name of the field to retrievestring
, role: string
): boolean
string
- Targeted client namestring
- Role name to checkboolean
- True if it contains given role, false otherwisestring
): boolean
string
- Role name to checkboolean
- True if it contains given role, false otherwisestring[]
): boolean
string[]
- List of role names to checkboolean
- True if it contains at least one of the given roles, false otherwisestring
, rolesToCheck: string[]
): boolean
string
- Targeted client namestring[]
- List of role names to checkboolean
- True if it contains at least one of the given roles, false otherwiseJWT is a standard for sending data securely that ADF uses during the OAuth2 authentication procedure. See the JWT website for full details of the standard and its uses.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.