Skip to content

Instantly share code, notes, and snippets.

@Krakaw
Created November 28, 2018 03:24
Show Gist options
  • Save Krakaw/5b270775c35a6f203b5cdd4f1592dbf2 to your computer and use it in GitHub Desktop.
Save Krakaw/5b270775c35a6f203b5cdd4f1592dbf2 to your computer and use it in GitHub Desktop.
Testing stripe auth page
#!/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