You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application configured with both OIDC and SAML2 authentication. When creating a test slice with @WebMvcTest the spring security configuration for OIDC is imported, while the configuration for SAML2 is not, therefore the tests don't work as expected.
The AutoConfigureMockMvc import list has org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration, but org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyAutoConfiguration is missing.
I have an application configured with both OIDC and SAML2 authentication. When creating a test slice with
@WebMvcTest
the spring security configuration for OIDC is imported, while the configuration for SAML2 is not, therefore the tests don't work as expected.The AutoConfigureMockMvc import list has
org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration
, butorg.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyAutoConfiguration
is missing.minimal sample: https://github.com/gbaso/web-mvc-test-saml2
The text was updated successfully, but these errors were encountered: