yii2-oauth2 icon indicating copy to clipboard operation
yii2-oauth2 copied to clipboard

Implementing prompt parameter to authorization endpoint

Open linuskohl opened this issue 6 years ago • 5 comments

Hi,

according to https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.1 there is an optional parameter prompt. It provides a workaround to single page applications that cant store refresh tokens. So you can call the authorize endpoint with prompt=none to prevent displaying anything or check if a user is still logged in. More information can be found here: https://auth0.com/docs/api-auth/tutorials/silent-authentication.

Would be happy to get some feedback. Thanks!

linuskohl avatar Oct 26 '18 19:10 linuskohl

Hello, why did you closed your pull request ?

pgaultier avatar Nov 05 '18 21:11 pgaultier

Hi, just continued with some rework, added tests. Wanted to create a new pull request containing all the updates, pretty much made this one obsolete. Sorry for the inconvenience

linuskohl avatar Nov 05 '18 21:11 linuskohl

No problem, thank you.

I created a 1.4.0 release to add the MySQL backend

Envoyé de mon mobile

Le 5 nov. 2018 à 22:30, Linus Kohl [email protected] a écrit :

Hi, just continued with some rework, added tests. Wanted to create a new pull request containing all the updates, pretty much made this one obsolete. Sorry for the inconvenience

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

pgaultier avatar Nov 05 '18 21:11 pgaultier

Hi, I refactored some of the error handling according to https://www.oauth.com/oauth2-servers/authorization/the-authorization-response and https://tools.ietf.org/html/rfc6749#section-4.1.2.1 and added some test cases. Thanks for feedback

linuskohl avatar Nov 06 '18 00:11 linuskohl

Hi, if everything works it could be merged

linuskohl avatar Jan 03 '19 13:01 linuskohl