Get Started with Spring Boot, SAML, and Okta

Matt Raible

This blog post is quite old. In fact, it’s the first one I wrote when I joined Okta almost four years ago! I’d recommend you try the new one at https://developer.okta.com/…. If that one gives you problems, please post a question to our developer forums. That way, more people will see it and can help you.

Joe Zirpolo

Hello,

How can I turn this example into a war file that I can deploy on tomcat?

Matt Raible

See one of our other posts for this information: Deploy a Spring Boot Application into Tomcat.

Sandeep Dubey

why i am getting this some time
InResponseToField of the Response doesn’t correspond to sent message agd8iefi01b50202f3cfjacc2if5id

Matt Raible

I’m not sure, I haven’t seen that error before. Please contact developers@okta.com to create a support ticket or ask this question on our developer forum (where more people will see it).

Minakshi Jha

Hi Matt, I am trying to implement SAML with my react as front end and Spring boot as backend application… could you please guide how can I integrate saml with React…
Any example will be very helpful

Matt Raible

I wouldn’t recommend integrating SAML in your front end. That’d be like making your React app implement SOAP to talk to your backend. It’s much easier to use OIDC. If you must use SAML, I recommend just doing it on your backend.

Hi Matt, Is there a way to add a new IDP at runtime from database while using Spring Security Extension for SAML 2.0.

Actually we have enterprise application, so each enterprise have separate authentication OKTA SAML 2.0 application for authentication.

How to add new Identity Provider into Java Web application by taking required attributes from User at runtime without restarting the server or application.

I’m not sure @ankitdabhi. This seems to be more of a question for the Spring Security folks. I’d recommend asking it on Stack Overflow and adding the spring-security tag.

1 Like

Is there documentation for implementing logout with Spring Security SAML?

Hi @farhankhan073!

It looks like the Spring Security docs cover this:
https://docs.spring.io/spring-security/reference/servlet/saml2/logout.html

Let us know if that doesn’t work for you or if you get stuck!