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

unauthorized / invalid_request when signing up from login page #61

Open
cshields opened this issue Oct 29, 2024 · 0 comments
Open

unauthorized / invalid_request when signing up from login page #61

cshields opened this issue Oct 29, 2024 · 0 comments

Comments

@cshields
Copy link

First, thanks for putting this code together - its been great to build off of. I've run into an issue that likely needs to be solved outside of this code, but given that it replicates at https://saastart.app/ I figured I would start here.

The dashboard client requires an organization. The management/onboarding client does not. When going through the signup flow from the portal itself, the management/onboarding client is used and the signup process works fine as the user does not have (or need) an organization. This all works fine.

However, when an unregistered user clicks "Log in" and then from the log in page clicks "Sign up" - they are sent to a sign up flow with the dashboard client ID since that is the client they began the login flow as. This results in an Unauthorized error of "invalid_request (client requires organization membership, but user does not belong to any organization)"

STR:

  1. Go to https://saastart.app/
  2. Click Log In
  3. Click Sign Up
  4. Enter email address, then password
  5. Get Unauthorized error
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

1 participant