RailsCasts Pro episodes are now free!

Learn more or hide this

John Frey's Profile

GitHub User: johnfrey

Comments by John Frey

Avatar

Here's an example of how to use the password grant type without a callback URL...

text
curl -i http://localhost:3000/oauth/access_token \
  -F grant_type=password \
  -F client_id=<client id> \
  -F client_secret=<client secret> \
  -F "scope=<scope>" \
  -F username=email@address.com \
  -F password=password
Avatar

For this I'd recommend looking into using the password grant type which doesn't require setting a callback URL.