Skip to content

Fix sigalg→sign_alg param naming for create_authn_request in POST binding#432

Open
JPDSousa wants to merge 1 commit into
IdentityPython:devfrom
JPDSousa:joao.sousa/fix-sign_alg-param
Open

Fix sigalg→sign_alg param naming for create_authn_request in POST binding#432
JPDSousa wants to merge 1 commit into
IdentityPython:devfrom
JPDSousa:joao.sousa/fix-sign_alg-param

Conversation

@JPDSousa

@JPDSousa JPDSousa commented Jun 8, 2026

Copy link
Copy Markdown

When signing is enabled and POST binding with a custom template is used, sso_kwargs["sigalg"] was passed directly to client.create_authn_request(), which expects the parameter as "sign_alg". This caused the signing algorithm to be silently ignored (absorbed by **kwargs).

The fix copies sso_kwargs before the create_authn_request call, pops "sigalg", and passes it as "sign_alg". The original sso_kwargs dict remains unchanged for prepare_for_authenticate calls, which correctly expect "sigalg".

Adds a test verifying create_authn_request receives sign_alg (not sigalg).

Fixes #433

@JPDSousa JPDSousa changed the base branch from master to dev June 8, 2026 16:16
@JPDSousa JPDSousa marked this pull request as draft June 8, 2026 16:16
@JPDSousa JPDSousa force-pushed the joao.sousa/fix-sign_alg-param branch from bb04cd5 to 14cd3ea Compare June 8, 2026 16:19
@JPDSousa JPDSousa marked this pull request as ready for review June 8, 2026 16:26
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