Skip to content

Conversation

@grudloffev
Copy link

Description

This PR introduces full support for the OAuth2 PKCE (Proof Key for Code Exchange) flow to the python-keycloak package.

Highlights

  • PKCE support in code

    • Implements code challenge and verifier handling in the authorization flow.
    • Adds PKCE utilities for code_verifier and code_challenge generation.
    • Updates async and sync methods in KeycloakOpenID to accept PKCE parameters.
    • Adds MIT license header to new modules.
  • PKCE tests

    • Adds tests for PKCE flow.
    • Validates both sync and async PKCE flows.
  • Documentation

    • Updates OpenID client documentation to explain PKCE usage and integration.

Checklist:

  • PKCE support implemented and tested
  • Documentation updated
  • All tests passing

@grudloffev
Copy link
Author

fixes #635

@grudloffev
Copy link
Author

hmm I think the failed test was a fluke, seems to be a transient connection issue

@grudloffev
Copy link
Author

Merged main to trigger retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant