Skip to content
Discussion options

You must be logged in to vote

you didn't miss anything, CWA's generic OIDC just doesn't do PKCE right now. in cps/oauth_bb.py the generic provider is a Flask-Dance OAuth2ConsumerBlueprint built without use_pkce, so no code_challenge ever gets sent and kanidm refuses it. so kanidm system oauth2 warning-insecure-client-disable-pkce <client> is the only way for now.

it's still a confidential client using the client secret on the token call, so it's not wide open, you just lose the extra PKCE check.

Flask-Dance has supported use_pkce=True since 7.0, and CWA already allows that version, so it should be a pretty small change. worth opening a feature request for it

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@papylhomme
Comment options

Comment options

You must be logged in to vote
1 reply
@papylhomme
Comment options

Answer selected by papylhomme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants