Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 from Rails after callback #3

Open
nelsonblaha opened this issue May 20, 2013 · 3 comments
Open

403 from Rails after callback #3

nelsonblaha opened this issue May 20, 2013 · 3 comments

Comments

@nelsonblaha
Copy link

I'm probably doing something wrong, or omniauth-reddit isn't up-to-date with Reddit's API.

Omniauth.rb:
provider :reddit, REDDIT_KEY, REDDIT_SECRET, {:scope => 'read,mysubreddits'}
(also tried :scope => 'read' with same result)

Approval page shows my app's name, but callback is 403 with this url:

http://localhost:3000/auth/reddit/callback?state=a5a...0516&code=uTA...Vj0

My callback URL is http://localhost:3000/auth/reddit/callback

Thanks for creating this gem! I have big plans for it.

@jackdempsey
Copy link
Owner

hey nelson,

Did you look at #1 by any chance? I unfortunately don't have time these days to help debug but I know that PR definitely fixed some stuff up.

good luck!

@johnkozan
Copy link
Contributor

Hi Nelson,
I had this problem as well. For some reason, reddit doesn't like if the referring host name is localhost.

Try your app at http://127.0.0.1:3000 and it should work.

@kayakyakr
Copy link
Contributor

The answer is that the identity scope is required for this gem to work. If you forget identity /api/v1/me.json does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants