Appearance
How do I check the status of my Jfrog access token for my generic account?
How do I check the status of my Jfrog access token for my generic account?
- Jfrog automation will send reminder email notification 15 days before it expried. Keep in mind that your generic account required email enabled.
- This bash script is a quick way to check the status of your generic ID token.
- Usage steps:
- Open Git Bash (from script directory)
- Terminal for Unix and MacOS
- To get all your current tokens status, run cmd: ./access_token.sh -t <TOKEN>
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 356 100 356 0 0 472 0 --:--:-- --:--:-- --:--:-- 476{ "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 get a specific token expired date, run cmd: ./access_token.sh -t <TOKEN> -i <TOKEN_ID*>
- Note: Token ID can be retrieved by previous steps. Use the first segment with the * symbol.
- Example: ./access_token.sh -t <TOKEN> -i 285ea2d1*
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 356 100 356 0 0 518 0 --:--:-- --:--:-- --:--:-- 525 Token Expired Date (Token_ID: 285ea2d1*): Wed Feb 19 19:10:16 EST 2025
- To create a token, run cmd: ./access_token.sh -c <TOKEN> -d "optional token description"
- Note: -d parameter is optional
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1213 100 1135 100 78 3057 210 --:--:-- --:--:-- --:--:-- 3332{ "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" }
- Open Git Bash (from script directory)