Skip to content

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

Merged
peppelinux merged 2 commits into
IdentityPython:masterfrom
JPDSousa:joao.sousa/fix-sign_alg-param
Nov 9, 2026
Merged

peppelinux merged 2 commits into
IdentityPython:masterfrom
JPDSousa:joao.sousa/fix-sign_alg-param

Conversation

@JPDSousa

@JPDSousa JPDSousa commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

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
@peppelinux

Copy link
Copy Markdown
Member

ok, going to plan to get back in the next week to run the latest contributions before the next release

@peppelinux
peppelinux changed the base branch from dev to master November 9, 2026 17:33
@peppelinux
peppelinux merged commit 6e4cf65 into IdentityPython:master Nov 9, 2026
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.

Signing algorithm ignored for POST binding (sigalg vs sign_alg mismatch)

3 participants