Skip to content

Not working with Spring Boot 2.6 without allowing circular dependencies #19

@amarchino

Description

@amarchino

Trying to upgrade the Spring Boot version of an application from 2.4 to 2.6, I found that the dependency for the ADFS connection actually suffers from some circular dependencies.

At first, I found that the

@Autowired
private SAMLAuthenticationProvider samlAuthenticationProvider;

field clashes with the

@Bean
public SAMLAuthenticationProvider samlAuthenticationProvider()

declaration. Yet, after removing the field and just using the bean configuration, Spring reported a dependency loop between samlEntryPoint and samlIDPDiscovery that I could not find a patch for.

These are obviously "resolved" by using the configuration

spring.main.allow-circular-references=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions