-
Notifications
You must be signed in to change notification settings - Fork 12
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
Including browser_id strategy breaks /auth/failure callback #2
Comments
This is still a thing, just encountered the same issue |
I'm encountering this one as well, has anyone found a workaround for it at all? |
No, haven't looked further into it yet. But I will probably do it the next couple of days, as we're actually going to implement it. |
Ah okay. Well from my (tired, quick) glance at the strategy, I'm not entirely certain why the |
At any rate, there's a hacky workaround by specifying a failure route which doesn't match
and matching both I feel bad for coming up with such a thing, quite frankly, but desperate times... |
Well, better than nothing :) Thanks for sharing! |
No worries! Keen to see a solution to this eventually, might look into it myself if I come across any free time. |
In a rails app, adding
provider :browser_id
to the bottom of my initialiser block causes all strategy failures to be detected as browser_id failures and causes a redirect loop at /auth/failure.Steps to reproduce:
A rails app with some strategies and an initializer:
Comment browser_id from the initializer and visit
/auth/google
. Cause an error by failing authourization on the client. Note the redirect goes to/auth/failure?message=invalid_credentials&strategy=google
which is the expected behaviour.Uncomment browser_id and visit
/auth/google
. Cause an error by failing authourization on the client. Note the redirect goes to/auth/failure?message=invalid_credentials&strategy=browser_id
and forms a redirect loop. Unexpected behaviour.A faster way to test is to visit
/auth/identity
and submit a blank form, which will also correctly trigger a failure. This happens with all the strategies listed here, unless browser_id is removed.Other than that, it works great :)
The text was updated successfully, but these errors were encountered: