Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
'code' parameter sent to callback looks broken #1
Hi! I'm working now on StockTwits API implementation into my current project and I think I found a bug (or a strange feature) Please, take a look to the problem:
So, please, let me know - that 'code' parameter is THE SAME 'code' that described in authorization manuals? May be you have any ideas why it can be incorrect, not existed or expired just after redirecting? Thanks!
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Omniauth-stocktwits implements an OAuth2 authentication strategy, and should be abstracting away the details of authentication, so you shouldn't have to ever manually follow the authentication steps you linked to, or send the
Once you're inside the devise
In that controller you would usually then save the access_token and stocktwits user id (
If you want to make API calls to StockTwits beyond just authenticating, I would suggest using OAuth2::AccessToken and the OAuth2 gem in general rather than using curl.