oktadev / okta-spring-boot-saml-example

Spring Boot, SAML, and Okta
https://developer.okta.com/blog/2022/08/05/spring-boot-saml
Apache License 2.0
77 stars 57 forks source link

The sample project is not handling the initial OPTIONS request sent out by Okta. #29

Closed tommai78101 closed 6 months ago

tommai78101 commented 6 months ago

I'm making an assumption based on findings from our log messages.

When attempting to authenticate with Okta, Okta first sends out an OPTIONS request to validate if the Destination location configured on the Okta portal supports a POST request or some other request methods, before sending out the request with that supported request method.

This sample project is currently not able to handle the initial OPTIONS request, so it throws an error about No relying party registration found for that OPTIONS request in the log messages.

Can this sample project be updated so we can know how to properly handle this OPTIONS request?

mraible commented 6 months ago

Hello @tommai78101. I was the maintainer of this example, but I no longer work at Okta after the Feb 1 layoffs. I'd suggest asking this question on the Okta or Auth0 community forums.

tommai78101 commented 6 months ago

@mraible Sorry to hear about that. Thank you for the pointers.