
t0qx4 (t0qx4) asked a question.
Hi
I am trying to intergrate my application with okta sso saml2
Getting an error "Invalid Destination"
On checking the log i find the below
Destination ::::: https://xxxxxxxxxx.stage.xxxxx.xx/login/saml2/sso/okta
assertionConsumerServiceLocation :::: http://xxxxxxxxxx.stage.xxxxx.xx/login/saml2/sso/okta
issue is due to the scheme mismatch.
please guide how i can proceed.
Open saml4 authentication provider
if (StringUtils.hasText(destination) && !destination.equals(location)) {
String message = "Invalid destination [" + destination + "] for SAML response [" + response.getID()
+ "]";
for my case location and destination mismatch happens due to http and https

Hi, @t0qx4 (t0qx4)
Thank you for posting on our Community page!
I did some research and found these articles to help you with the integration:
https://developer.okta.com/blog/2022/08/05/spring-boot-saml#create-a-spring-boot-app-with-saml-support
https://github.com/oktadev/okta-spring-boot-saml-example
Thank you for reaching out to our Community and have a great day!
_____________________________________________________________________________
Coming soon: Get tips from community managers during Okta Community's first Ask Me Anything event on 6/22
_____________________________________________________________________________
Community members help others by clicking Like or Select as Best on responses. Try it today.
_____________________________________________________________________________