-
Notifications
You must be signed in to change notification settings - Fork 0
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
Authorization Flow Issues #46
Comments
I was just able to duplicate this issue. I went to https://store.phenovista.com/, but when I pressed the "sign in" button, it redirected me to https://phenovista.softserv.cloud/api/auth/signin?error=OAuthCallback. this probably has something to do with the fact that the site is actually deployed to https://phenovista.softserv.cloud. their cname of https://store.phenovista.com/ point there, so the callback redirect is most likely the problem. clicking "sign in with phenovista" did sign me in properly. ref: slack thread around dns and cname. |
I tested this again by signing into phenovista.scientist.com, and disallowing access to the DS in my settings. I then went back to https://store.phenovista.com/ and tried to sign in. it took me to the phenovista store front to grant access to the DS. I selected "allow" but didn't have it remember my decision, which redirected me to https://phenovista.softserv.cloud/api/auth/signin?error=OAuthCallback, the softserv dns. this time, pressing "sign in with phenovista" took me back to the phenovista storefront once more. after pressing "allow" again, it redirected me to phenovista.softserv.cloud and NOT store.phenovista.com. this is definitely a redirect problem. will have to research to see how to get around it. |
this new variable will be necessary so that redirects happen properly when the client is using their own domain, but pointing it to the softserv.cloud instance. - ref: #46
crystal suggested in stand up that this issue might be able to be fixed from the devops side. started a thread for possible suggestions. |
with this commit we will now be redirected back to store.phenovista.com after signing in, instead of being redirected to phenovista.softserv.cloud. I tested this change on production to confirm it works. ref: - #46
story
occasionally, when logging in to the phenovista marketplace from their digital storefront, the user is redirected to the next auth sign in page instead of routing them directly to the marketplace. the behavior in the screenshot below is what happens when the provider's id isn't passed to the
signIn
method. we are passing it however, so debugging needs to be done to see why we aren't bypassing the nextauth sign in page.Digital storefront user journey:
https://docs.google.com/document/d/1nNvUxzInahqMrVZWGCyVnskmJvMo4c1k5oqKwwSYvIY/edit
screenshots
resources
notes
The text was updated successfully, but these errors were encountered: