Skip to content

Cannot Link to the callbackUrl #32

Closed Answered by sergiodxa
ThibautMarechal asked this question in Q&A
Discussion options

You must be logged in to vote

The callback url is to where the Identity Provider will redirect the user after authorizing the login.
This is not to where you take the user to start the authorization process.

You should have a login route with a Sign In button per provider, then make those buttons take the user to a route where you call the authorize method, this should be different than the callback url, from this the strategy will take the user to the identity provider authorization endpoint and then redirect them back to the callback url of your app.

Check the instructions on https://github.com/sergiodxa/remix-auth-github to see how it’s used, that strategy extends the OAuth2Strategy.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThibautMarechal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants