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 Example fails to start #11853

Closed
IncPlusPlus opened this issue Feb 22, 2022 · 1 comment
Closed

SAML Example fails to start #11853

IncPlusPlus opened this issue Feb 22, 2022 · 1 comment
Labels
on-jira triaged Issues reviewed by a dev and considered valid. Will be added in Jira.

Comments

@IncPlusPlus
Copy link

I pulled the latest commit, set up the keystore and IDP info in application.properties, and tried to start the application. It failed with an error. Description below

Description:

The dependencies of some of the beans in the application context form a cycle:

┌─────┐
|  samlEntryPoint
↑     ↓
|  webSecurityConfig (field private org.springframework.security.saml.SAMLEntryPoint com.baeldung.saml.config.WebSecurityConfig.samlEntryPoint)
└─────┘


Action:

Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

The path of the project is spring-security-modules/spring-security-saml

@kwoyke kwoyke added the triaged Issues reviewed by a dev and considered valid. Will be added in Jira. label Mar 10, 2022
@kwoyke
Copy link
Contributor

kwoyke commented May 18, 2022

Hi @IncPlusPlus,

Thanks for the heads up.
This is an issue that occurs with Spring Boot 2.6 and SamlEntryPoint.
The issue is still open at spring-security-saml : spring-attic/spring-security-saml#518

For now we set the spring.main.allow-circular-references=true

@kwoyke kwoyke closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-jira triaged Issues reviewed by a dev and considered valid. Will be added in Jira.
Projects
None yet
Development

No branches or pull requests

3 participants