laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.29k stars 780 forks source link

prompt: login not redirectring to login with PKCE #1621

Closed Devil4ngle closed 1 year ago

Devil4ngle commented 1 year ago

Description:

prompt: login not redirectring to login page with PKCE ( I only tried PKCE ) instead it redirects on the authorisation page (the one where you can click authorize or cancel )

Steps To Reproduce:

Typical procedure to login and get token with PKCE and then did the following

response_type=code
state=cw7WuYjNAqUvUN6Z5mlTGlMMRynGU3Qz53Pm2xq7
client_id=5
scope=*
code_challenge=V-hvpOFjEwHQ6S5Ap3vFiGcjrfxZO60chhU4UUf5aY0
code_challenge_method=S256
redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fhome%2Fcallback
prompt=login

this redirected me on the authorisation page and not the login page, I think this is a bug otherwise how could I switch user the only way is to write a route myself that destroys the session.

Devil4ngle commented 1 year ago

Also from the Documentation but not under PKCE: grafik