Created
November 28, 2018 03:24
-
-
Save Krakaw/5b270775c35a6f203b5cdd4f1592dbf2 to your computer and use it in GitHub Desktop.
Testing stripe auth page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USERNAME="" | |
PASSWORD="" | |
if [ ! -f "$(which jq)" ]; then | |
echo "Please install jq" | |
exit 1 | |
fi; | |
content=$(curl -s -X POST --header 'Content-Type: application/json' -d '{"email": "superuser@test.com", "password": "password"}' "https://${USERNAME}:${PASSWORD}@staging.bigneon.com/api/auth/token") | |
access_token=$( jq -r '.access_token' <<< "${content}" ) | |
refresh_token=$( jq -r '.refresh_token' <<< "${content}" ) | |
open "https://staging.bigneon.com/mobile_stripe_token_auth/${access_token}/${refresh_token}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment