-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implements a seamless login flow that remembers your last sign in scope #291
Conversation
@@ -76,6 +76,8 @@ | |||
# Use default logging formatter so that PID and timestamp are not suppressed. | |||
config.log_formatter = ::Logger::Formatter.new | |||
|
|||
config.middleware.use Rack::Attack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why move?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cleans up the logs for development.
Don't really need the log noise while I'm developing.
Sorry I threw that in there, just felt compeled
Probably a trivial fix that's worth just including here, but https://huboard-rails-pr-291.herokuapp.com/dashboard throws a 500 if you're not authenticated. Should challenge for auth. |
Also, thoughts on directing the Private tab to |
A few other questions, just thinking through edge cases:
Really just trying to think through how we could completely shut down access routes to weird states. |
I played with it originally, but it is a deceiving UX. I.E:
|
👍 |
@dahlbyk new push addresses your edge cases. I think we are ready to 🚢 |
Nitpick noted. I'm going to leave it for now, I'm good to ship the way it is Anything else before we 🚢? |
It may be worth implementing @dahlbyk 's suggestion that if there is a private or publics scope already, This would effectively block users from reaching bad states from scope downgrades. Otherwise I think it's 🚢 |
I can still reproduce #291 (comment) if I have authorized private and hit Also noticed that if the app is revoked, |
This is because Ghee::Unauthorized will log you out and redirect to
We can still ship, knowing that "could" happen. Currently there is only one scenario where the application redirects or links to I'm not ready to completely kill I think the question is:
If someone gets into a funky state, the solution is... /logout => /login/github The user will be taken to either /welcome or /dashboard where there are links to upgrade access that will fix it. Without adding datastore or switch auth frameworks, I don't think there is a perfect solution. My vote is: Make a decision on how we handle |
Just to send users to |
That's why we have Git. 😉 But seriously, life gets simpler if we make With that plus a |
OK! I've added the requested changes. Let's 🚢 this bad boy! |
👏 ✨ 👏 Excellent work! |
Closes #168
Closes #172
Closes huboard/huboard#624