You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this component to authenticate into GitLab.
In GitLab, I must define the redirect URI for the given application. I can define multiple URIs.
The Redirect URI is the URL where users are sent after they authorize with GitLab.
When using this component, the redirect URI is changed to the current route/url.
This forces me to add ever rout of the app in GitLab.
In other words, if I have route myapp.tld/A and myapp.tld/B and both need to access some API in GitLab, I need to define both URLs when creating the oAuth application in GitLab.
It would be perfectly fine to redirect the user to the app's home after getting the authorization from GitLab.
This makes little sense to me.
I'm sure I'm missing something obvious here.
The text was updated successfully, but these errors were encountered:
Have you tried to only specify myapp.tld/ as redirect URI, i.e. without A or B? This is how we used react-pkce with other oauth2 providers: They then allowed any URI as redirect URI that begins with myapp.tld/,
@Chris927 we face the same problem, our Oauth provider allows only a very specific Redirect URI (/auth/foo/callback).
This is a blocker for us, unfortunately we cannot use this library without the ability to specify the redirect uri.
There seems to be a PR already for adding this: #7
I'm trying to use this component to authenticate into GitLab.
In GitLab, I must define the redirect URI for the given application. I can define multiple URIs.
When using this component, the redirect URI is changed to the current route/url.
This forces me to add ever rout of the app in GitLab.
In other words, if I have route
myapp.tld/A
andmyapp.tld/B
and both need to access some API in GitLab, I need to define both URLs when creating the oAuth application in GitLab.It would be perfectly fine to redirect the user to the app's home after getting the authorization from GitLab.
This makes little sense to me.
I'm sure I'm missing something obvious here.
The text was updated successfully, but these errors were encountered: