Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saml AuthnContextDecl in SAML Assertion is ommitted #10743

Closed
yoannguion opened this issue Mar 14, 2022 · 0 comments · Fixed by #10750
Closed

Saml AuthnContextDecl in SAML Assertion is ommitted #10743

yoannguion opened this issue Mar 14, 2022 · 0 comments · Fixed by #10750
Labels
area/saml Indicates an issue on SAML area impact/low kind/bug Categorizes a PR related to a bug
Milestone

Comments

@yoannguion
Copy link
Contributor

Describe the bug

Hello,

I have wroten a custom saml Extension in keycloak where i customize saml AuthnContext.

But the AuthnContextDecl (https://github.com/keycloak/keycloak/blob/main/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/assertion/AuthnContextDeclType.java) i had is ignored during the Assertion serialization in Xml.

There is a bug in the SAMLAssertionWriter

I will do a PR for the change.

The bug is present in a lot of version, i reproduce the bug with 11, 15, 16, 17

Version

17

Expected behavior

The AuthnContextDecl added in AuthnContext must be included in serialized Assertion

Actual behavior

The AuthnContextDecl added in AuthnContext is not included in serialized Assertion

How to Reproduce?

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/saml Indicates an issue on SAML area impact/low kind/bug Categorizes a PR related to a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants