-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix identity provider login page not found due to missing permission #4795
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
Fix identity provider login page not found due to missing permission #4795
Conversation
|
@mikemurray here's a reminder to check this PR. |
|
@mikemurray your finding about getting the not-found page after a reset is true. I can confirm it. It shows a fault in the way startup events happen when a reset happens. I think it needs to be sorted out separately. I don't know if it's a recent regression, but should not block this PR The afterCoreInit is the specified way all plugins add new roles to groups at this point, so it's likely affecting others too. |
|
@impactmass If Also, the permission issue can still be overcome by going into the Accounts panel and enabling OAuth login for both "Customer" and "Guest". |
|
Hey y'all, what is the status of this? thanks! |
|
@pmn4 @mikemurray @impactmass |
mikemurray
left a comment
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.
This PR is blocked by the fact that afterCoreInitonly triggers after you start reaction once, stop then start again.
afterCoreInit will need to be looked at to see why it doesn't trigger when you think it's supposed to.
|
@pmn4 What's causing you to not be able to sign in? The Hydra OAuth page is primarily used for the starter-kit for auth. |
|
@mikemurray I'm pretty sure that Pat is trying to migrate his site to 2.0/starter-kit |
|
it's true that I am migrating, however, I simply cloned the platform repo, started it up and was unable to login. |
|
@spencern I'd say "blocked" was the wrong label, the issue needed a deeper look and I wasn't actively working on it after that point, but @dancastellon just opened PR #4835 to tackled this issue as well. He tracked it down to a migration problem. See thread on #4835 |
|
@impactmass I don't remember merging this though GitHub says I did. I merged #4835 - should this be reverted? |
|
I think GitHub closed this as a merged PR because the other PR you merged was branched off the branch here. I've checked rc-7 branch and the changes there looked good. |
|
Im experiencing the same issue on a fresh checkout of reacttion-platform, with 2.0.0-rc.7 pulled. Only change I made is modifying the docker-compose file to make sure that the volume for the mongo container is unique. |
|
Hi @janus-reith, this fix did not go out with the rc-7 release. This fix was merged into the rc-7 branch shortly after we already released rc-7 as a security patch. It will be published with the rc-8 release. If you want to test it out right now you can use the rc-8 branch. |
|
The merged to |
Resolves #4794
Impact: major
Type: bugfix
Issue
OAuth IDP login pages created by the Hydra plugin are not showing up after recent updates. So
/account/loginreturns Not Found.This started happening after the permission update to Package routes publication.
Solution
Add the permission for the Hydra plugin to guest groups. This allows the route to be published for anyone visitor to the meteor app trying to login from the Starterkit.
This should be done for plugins that add public routes.
Breaking changes
N/A
No migration needed.
Testing
Docs
I'll go through the docs and creating a public that adds a public route. It should say that the permission for the plugin needs to be granted to anonymous users, otherwise the route will not be accessible to non-admin users.
Update: In fact, there is no docs concern. Because in a post 2.0 world, our process now is that UI should be driven separately from the API (as seen in the warning message here