So the problem I have is that the SAML already has been implemented in the project using spring-security-saml to integrate with federate IDP.
And now I need to secure REST API calls that are happening from a place where JSESSIONID can't be persisted so I want to exchange SAML Assertion that I get from federate to JWT to provide back to client side so it can be used in Authentication header.
For now I'm a bit lost, I was trying to use JwtAccessTokenConverter from spring-security-jwt to create a JWT token but can't figure out how to glue that together with SAML.
Can someone please shed some light on this one? Or maybe there is another option on how to secure REST API using SAML that I don't know.
Thank you!