Search code examples
spring-bootspring-securityadfsazure-ad-msalspring-saml

Is there a Spring boot SAML client for integrating SAML with spring boot application?


I am developing a spring boot application that integrates with multiple Idp's. I have checked many examples over the internet on integrating Spring application with SAML, all of them show how to integrate with IDP's via application properties.

In the case of OAuth 2.0, we had Clients provided by MSAL libraries, we integrated as below.

ConfidentialClientApplication
                    .builder(decryptCredential(adClientId), clientSecret)
                    .authority(authorityURL).build();
clientApplication.getAuthorizationRequestUrl(parameters).toString();
clientApplication.acquireToken(authorizationCodeParameters);

Is there a similar way in Spring boot, to have a Client call to ADFS SAMLIDP and get the user authenticated?

Based on the request, fetch IDP details from Database and invoke a call to the appropriate IDP to get the user authenticated.

thanks in advance.


Solution

  • I explored coveooss library, which has clients and it is easiest one to invoke ADFS to fetch SAML assertions. Here is the link for COVEOOSS git link