erlef / oidcc

OpenId Connect client library in Erlang & Elixir
https://hexdocs.pm/oidcc
Apache License 2.0
184 stars 49 forks source link

Restructure PKCE handling #400

Open maennchen opened 2 weeks ago

maennchen commented 2 weeks ago

This issue is here to track improvements whenever we start work on a new major release since it will cause breaking changes. It is not intended to be solved right now.

Current situation

PKCE will only be requested when the pkce_verifier option is passed.

Desired

PKCE will automatically be enabled & a secret generated if there's supported code challenges. The result of the authorization function should result in both a url and the PKCE verifier if one was used.