Replies: 1 comment 5 replies
-
Maaaaybe PKCE is what im looking for? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I have a standalone ReactJS app, and I am creating an authentication service in another Laravel app.
This is an issue, because it seems like Passport fully relies on passport routes. Maybe I am wrong, but that's what I understood. And this is, at this point, making me desperate to find a solution. My whole workflow has stopped to figure this issue out.
This makes this a little bit complicated since I can not use sessions. Regardless of that, by following Passport's documentation, this is what I did:
Then, I created the client:
Here is where things get complicated: I implemented a TOTP 2FA flow, which makes it impossible for me to use password type of grant since those were verified first. Moreover, as I am using ReactJS, I need to proxy the whole token issuance.
This is how I am trying to handle the token issuance after TOTP verification:
But I am not sure how to handle this token issuance. The documentation seems to be forcing the user to access a route within the laravel's project.
In the front-end, I am doing the following:
The front-end APP_URL makes no sense, I know. But I am completely lost on how to handle this without accessing the web routes within my laravel app.
Any help would be extremely appreciated. Cheers
Beta Was this translation helpful? Give feedback.
All reactions