-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Feature Request: add redirectUrl field in OAuth2AuthConfig for authWithOAuth2 #2581
Comments
This doesn't make much sense to me. The idea of the "all-in-one" call is to handle everything in the user app without redirect (you can redirect to your custom url manually after If you want to provide a custom redirect url and to handle a deeplink, you can use directly the "Manual code exchange" flow, aka. the "old" way (internally the "all-in-one" call is using it). |
If I have
does this men that I cannot use the Simplified OAuth2 authentication flow. Is that correct, or have I misunderstood? |
@einarpersson The "all-in-one" OAuth2 flow works only in environments where you can open a browser window (eg. in a client-side browser, cli, desktop application, etc.). It won't work in a node server-side context (unless you proxy it somehow) because it requires a long running persistent HTTP connection to remain active during the entire OAuth2 signin/signup process. |
@einarpersson it will work in your mentioned scenario the problem I had with it in my use case was that my svelte app is running in an android app so the user is not being automatically redirected to my app after authentication flow is completed just a go back message was being displayed |
In the new Simplified OAuth2 authentication flow(#55) there is no option to specify a custom redirect url after the flow is completed
this will be useful in apps where deep linking is setup and pocketbase backend is hosted on a different url
The text was updated successfully, but these errors were encountered: