<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009IMBZgCAPOkta Classic EngineIntegrationsAnswered2024-08-10T09:03:14.000Z2023-06-07T10:23:08.000Z2023-11-08T18:02:27.000Z

t0qx4 (t0qx4) asked a question.

Invalid destination - Okta saml2 spring boot integration

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


This question is closed.
Loading
Invalid destination - Okta saml2 spring boot integration