jrd / django-oauth2-authcodeflow

Authenticate with any OpenId Connect/Oauth2 provider through authorization code flow. PKCE is also supported
https://pypi.org/project/django-oauth2-authcodeflow/
MIT License
14 stars 7 forks source link

auth - build_token_request_params #19

Closed pinoatrome closed 2 months ago

pinoatrome commented 9 months ago

Refactored authenticate_oauth2 method to use build_token_request_params in auth module to isolate the logic of the selection of the params. Added OIDC_OP_PKCE_ALLOW_SEND_SECRETconfiguration entry (default isTrue for retrocompatibility) to send or not the client_secret instead of relying on an empty value. Added description of the new configuration entry Added tests for build_token_request_params method Closes #18

cpontvieux-systra commented 2 months ago

Merged with commit bb4bada048b9ec1ab42f88263fb8673de5e324b0