We have a React application that uses a java RESTful service.
Currently it passes user/pass to the rest service to login and the RESTful service creates the JWT headers for subsequent requests.
We need to change the application to use SAML2.
When the React application sends a request to the java RESTful service it correctly fails and redirects to the okta login page.
Once the user authenticates with the SAML2 okta page, it correctly redirects to the React url.
However, once the React url is accessed, the session keeps getting redirected back to saml urls which I’m assuming is due to the host/port being different.
In addition, the implementation of the okta spring java libraries use the session to store the authentication details, but we need to use JWT for stateless sessions across cloud servers.
Is there any way convert this to jwt with the okta java spring libraries instead of using the session?