Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- CLIENT_ID= # Add client id
- CLIENT_SECRET= # Add client secret
- AUTH_TOKEN_URL= # Add token url
- AUDIENCE= # Add audience
- curl --silent --request POST \
- --url $AUTH_TOKEN_URL \
- --header 'content-type: application/json' \
- --data "{\"client_id\":\"$CLIENT_ID\",\"client_secret\":\"$CLIENT_SECRET\",\"audience\":\"$AUDIENCE\",\"grant_type\":\"client_credentials\"}" 2>&1 | \
- grep -Eoi 'ey([^"]+)' | \
- pbcopy; \
- echo "Copied to clipboard"
Add Comment
Please, Sign In to add comment