Skip to content

Commit

Permalink
Update saml integration
Browse files Browse the repository at this point in the history
  • Loading branch information
APiankouski committed Oct 24, 2024
1 parent f5fdf4d commit 4eec813
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,12 @@ public class SamlSecurityConfiguration extends WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {

LOGGER.error("findByRegistrationId: " + relyingPartyRegistrationRepository.findByRegistrationId("microsoft"));
// add auto-generation of ServiceProvider Metadata
RelyingPartyRegistrationResolver relyingPartyRegistrationResolver = new DefaultRelyingPartyRegistrationResolver(relyingPartyRegistrationRepository);
Saml2MetadataFilter filter = new Saml2MetadataFilter(relyingPartyRegistrationResolver, new OpenSamlMetadataResolver());
var authenticationRequestResolver = new OpenSaml4AuthenticationRequestResolver(relyingPartyRegistrationResolver);
authenticationRequestResolver.setRequestMatcher(new AntPathRequestMatcher("/saml/login"));
var authenticationProvider = new OpenSaml4AuthenticationProvider();
http
// Configure SAML 2.0 Login
.saml2Login(
Expand Down

0 comments on commit 4eec813

Please sign in to comment.