Is it a good idea to add pkce support?
Closed this issue · 2 comments
Jazzgeir commented
Using a client generated state is a nice feature, but it'd be also very nice to add the PKCE server side security too!
The task at hand:
- Create a code_challenge
- Create a code_verifier
- Store code_verifier in session
- Send code_challenge and code_challenge_method (S256?) to authority server when requesting auth code
- On return from authority server, Proceed as normal, checking state etc
- Send code_verifier when exchanging auth code for auth token
Voilà!
bradjones1 commented
This project is minimally maintained. I would suggest looking at https://oauth2-client.thephpleague.com/
Jazzgeir commented
OK, fair enough. :-) Thanks for the pointer!