Hi!, im trying to implement SAML(Azure AD) authentication to my SPA app (React), this app consumes a Java Backend (Vertx).
I took Vertx Demo as intial point, but a notice this is oriented to backend rendering as it protect resources and returns a HTML.
The frontend files are mounted in a Nginx server and can be access by "
domain.com/".
Currently I achieved to trigger the auth proces by accesing the "/auth/login" route and it works correctly, after the auth process it redirects me to "
domain.com/" as I specified in
final CallbackHandlerOptions callbackHandlerOptions = new CallbackHandlerOptions()
.setDefaultUrl("https://domain.com/) .setSaveInSession(true)
.setMultiProfile(false);
but obviously this is not the correct way to do this.
Is possible to protect a SPA using SAML?
Any guidance or suggest are very appreciated. Thanks!