rn100's avatar
Level 1

Laravel Passport - Authorization Code Grant with PKCE

Hello everyone,

I am using Laravel Passport - Authorization Code Grant with PKCE

I am following the docs (https://laravel.com/docs/8.x/passport#code-grant-pkce)

However, I am stuck on the Redirecting For Authorization section

On this section, I am redirecting to the /oauth/authorize and appending the query params.

I then get redirected and started receiving the Route [login] not defined error. I fixed this by adding the login route in the web.php.

I am now redirected to the login route; however, I am confused. Am I supposed to setup the login page?

In addition, I have found little to no information regarding people asking about Passport with PKCE. I believe this was released earlier this year..

0 likes
4 replies
errorqo's avatar

Hey, got same problem here, did you solved it please ?

marlie's avatar

Any luck with this? I have the same problem

marlie's avatar

I figured it out for me. My problem was that my redirect_uri param in my request to /oauth/authorize was different than the redirect_uri I had stored in the database for my oauth_client

Please or to participate in this conversation.