Vaadin Spring Boot Okta Saml

Hi

did anyone tried to get Spring Boot Security working with Okta single sign-on and Saml?

If yes, please provide some useful guidelines.

Thank you

Hi,

I am facing the same problem. Any advice?

Hi,

for those facing SAML in the future, with no spring knowledge like me, I finally figured it out. There are some important steps by implementing Spring Security with SAML. The most important is, that the application finds the Configuration Class. It took me days until i realized that, because Spring Security works, but just not with the SAML implementation.
So basically there are three things to do:

First you need to implement Spring Security, i therefore recommend the tutorial from vaadin:
https://vaadin.com/learn/tutorials/securing-your-app-with-spring-security/introduction-goals-and-project-base

And second, you need to configure SAML. Therefore I followed more or less this tutorial:
https://blog.imaginea.com/implementing-java-single-signon-with-saml/

And finally, make sure Spring finds your configuration class. The easiest way to do so is to scan for the Class in the right package with the ComponentScan.

@SpringBootApplication(exclude = ErrorMvcAutoConfiguration.class)
@ComponentScan(basePackages = "ch.prosim.fns.saml")
public class Application extends SpringBootServletInitializer {
//******************************************************************************
//==============================================================================
// Construction:
//==============================================================================
//------------------------------------------------------------------------------
	public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
	}
}

Hope to help someone with this.