Skip to content

How do I check the status of my JFrog access token for my generic account?

To check your JFrog access token status for a generic account:

  1. Email Notification
    JFrog automation sends a reminder email 15 days before your token expires. Make sure your generic account has email enabled.

  2. Use the Bash Script
    This bash script quickly checks the status of your generic ID token.

    Usage:

    • Open Git Bash in the script directory (or use a Unix/Mac terminal).

    • To see the status of all your current tokens:

      bash
      ./access_token.sh -t <TOKEN>

      Sample Output:

      json
      {
        "tokens": [
          {
            "token_id": "285ea2d1-13a6-4c7a-a6e4-c6c500628fd6",
            "subject": "jfac@01gef54g5m0b9g036qk37f1mj3/users/jvswitpx@ford.com",
            "expiry": 1740010216,
            "issued_at": 1708474216,
            "issuer": "jffe@000",
            "description": "jvswitpx Generic Token",
            "refreshable": false,
            "scope": "applied-permissions/user"
          }
        ]
      }
    • To check a specific token's expiration date:

      bash
      ./access_token.sh -t <TOKEN> -i <TOKEN_ID*>
      • Note: Use the first segment of the token_id with * (e.g., 285ea2d1*). Sample Output:
      Token Expired Date (Token_ID: 285ea2d1*):
      Wed Feb 19 19:10:16 EST 2025
    • To create a new token:

      bash
      ./access_token.sh -c <TOKEN> -d "optional token description"
      • The -d parameter is optional. Sample Output:
      json
      {
        "token_id": "8f13a186-214a-4a60-937f-999cf166148a",
        "access_token": "<TOKEN_LONG_VERSION>",
        "refresh_token": "444f0dc5-e442-4a8c-8dc8-cf5a95e1394e",
        "expires_in": 31536000,
        "scope": "applied-permissions/user",
        "token_type": "Bearer",
        "reference_token": "<TOKEN>",
        "description": "This is a test token"
      }

Tip: Always keep your access tokens secure and monitor their expiration status to avoid interruptions in automation.

Brought to you by DevTools and Enablement Team.