ARTIFACTORY: How to Use Access Tokens to Discover the Groups to Which Users Belong

ARTIFACTORY: How to Use Access Tokens to Discover the Groups to Which Users Belong

AuthorFullName__c
Muhammed Kashif
articleNumber
000004837
ft:sourceType
Salesforce
FirstPublishedDate
2020-06-22T07:47:03Z
lastModifiedDate
2021-01-14
VersionNumber
7

Generally, you’ll create access tokens for one of two reasons:

  • to refine the authentication credentials of your users

  • in-the-moment necessity

From time to time, you might need to view access token details for particular users (e.g., to discover how many groups a given user is assigned to). For this purpose, you can make use of JSON Web Tokens (JWTs), which allow you to generate, decode, and verify web tokens, as follows:
User-added image
Equally handy is the JWT-CLI, which is “an npm CLI program for decoding JSON Web Tokens (JWTs) and the Unix timestamps within their bowels.”