mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-4658] Release note for ADF 3.3. * License info update. * Version index issue. * release note
1.1 KiB
1.1 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
JWT helper service | v3.0.0 | Active | 2019-01-09 |
JWT helper service
Decodes a JSON Web Token (JWT) to a JavaScript object.
Class members
Methods
- decodeToken(token:
any
):Object
Decodes a JSON web token into a JS object.- token:
any
- Token in encoded form - Returns
Object
- Decoded token data object
- token:
- getValueFromLocalAccessToken(key:
string
)
Gets a named value from the user access token.- key:
string
- Key name of the field to retrieve
- key:
- getValueFromToken(accessToken:
string
, key:string
)
Gets a named value from the user access token.- accessToken:
string
- - key:
string
-
- accessToken:
Details
JWT 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.