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

RelyingPartyRegistrations Fails to Read Keycloak Metadata #9051

Closed
jzheaux opened this issue Sep 25, 2020 · 0 comments
Closed

RelyingPartyRegistrations Fails to Read Keycloak Metadata #9051

jzheaux opened this issue Sep 25, 2020 · 0 comments
Assignees
Labels
in: saml2 An issue in SAML2 modules type: bug A general bug
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Sep 25, 2020

When loading metadata from a Keycloak endpoint, the application fails with a ClassCastException:

java.lang.ClassCastException: org.opensaml.saml.saml2.metadata.impl.EntitiesDescriptorImpl cannot be cast to org.opensaml.saml.saml2.metadata.EntityDescriptor

This is because it incorrectly assumes that the root element will always be EntityDescriptor. In Keycloak's case, the EntityDescriptor is surrounded with an EntitiesDescriptor element.

@jzheaux jzheaux added type: bug A general bug in: saml2 An issue in SAML2 modules labels Sep 25, 2020
@jzheaux jzheaux added this to the 5.4.1 milestone Sep 25, 2020
@jzheaux jzheaux self-assigned this Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: saml2 An issue in SAML2 modules type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant