There is a difference in relay state encoding introduced in 21.3.1 Oct 2022 release. So if there are two VSA Gateways, and one of them is on this higher version and this gateway is set as the ACS url on the idp – you would end up observing the below error (say GW1 is on lower version than GW2 and GW2 is configured as the acs url)

 

On GW1

 

vsm-vcsn0> show saccess session history id 14960       

  ID            : 14960

  Timestamp     : 2022-10-14 21:16:31.276

  Tenant        : PSI

  Source IP     : 150.129.102.229

  Request ID    :

  Current index : 0

  Next index    : -1

  Service,

    URI               : gateway

    Username          : [email protected]

    Action            : prelogin

    Auth profile      : PSI-Authentication-Profile

    Auth method       : saml

    Auth cache        : IP_based

    OTP profile       :

    OTP type          :

    Temp pwd prof     :

    Public IP         :

    Private IP        : 192.168.1.11

    IPSEC profile id  : PSI-Access

    RTT               :

    Tunnel IP         :

    EAP ID            : [email protected]

  Policy,

    Evaluated         : no

    User ID count     : 0

  HTTP Request,

    Method : GET

    URI    : '/secure-access/services/gateway?action=prelogin&ent_name=PSI&username=versa.psi%40praweda.id&os_type=Windows_10_Pro&os_version=v-2009+b-19044.2006&client_version=7.5.7&ep_protection=Windows+Defender&cb_url=com.versa.sase%3A%2F%2FsecureAccessClient&ipsec_profile_id=PSI-Access&private_ip=192.168.1.11&eap_id=versa.psi%40praweda.id&detect_trusted_network=true'

    Query-params,

      ent_name               : PSI

      action                 :

      latitude               : 9.3842

      longitude              : 76.5795

      os_type                : Windows_10_Pro

      os_version             : v-2009 b-19044.2006

      client_version         : 7.5.7

      isp                    : Alliance Broadband Services Pvt. Ltd.

      ep_protection          : Windows Defender

      uuid                   :

      cb_url                 : com.versa.sase://secureAccessClient

      cookie                 :

      look_for_best          :

      req_device_id          :

      req_eip_info           :

      tunnel_count           :

      force_auth             :

      detect_trusted_network : true

      preferred_gw_fqdn      :

      preferred_gw_ip        :

      api_version            :

      tunnel_ip              :

      sess_token             :

    Headers,

      host           : psi-02.versanow.net

    Body   : ''

  HTTP Response,

    Code   : 307

    UUID   : bad2edcdabae6113

    Headers,

      auth_basic     : no

      auth_negotiate : no

      location       : https://accounts.google.com/o/saml2/idp?idpid=C04jyb3c5&SAMLRequest=fVJNU9swEL3zKzy%2by18EN9bE6ZhkKJmhNENSDr10ZHkTRGXJaOUE%2fn0lBdpyKAcdtPve27dPmiHr5UCb0T6oO3gaAW10pQ2HUKnjHZMI8VkUPfdSIQ3oOh6NopqhQKpYD0gtp5vm6w0tkowORlvNtXxP%2bpjDEMFYoZUnrZZ1%2fEXrvQTiAT%2bnrJyU7aTtLnZVfl59aqcVVGXFOGszmBal59yDQUevY6fm72ujD6IDc%2btG1bHvMrKT8Hx%2fexVGII6wUmiZso6TFQXJM5JPtkVO85Lm1Q%2bPWrowhGI2CD9YOyBNU8a5HpXFZB8sJlz3qU79ikUquuGzO6KrF9nk8aU95xevZkIil0J1Qu0%2fjqI9gZBeb7drsv622XqJ5i2ghVY49mA2YA6Cw%2fe7m7%2fWBhQky5OD31bpY6LApgh8NECca0B0t8DC4DeVei8U4a%2bKfszcnWjmmzREZOZv2kGUOMWjNr8wbN2DZR2zbJb%2bS%2fijMFAf%2fmq51lLwF1%2bO%2fM%2fqmf1%2fAHmSh4royC5AKfRMyKbrjLMfn0QaKfVxYYBZ97TWjBBH6fzs5OL9T57%2fBg%3d%3d&RelayState=psi-02.versanow.net%3abad2edcdabae6113%3a

 

---------------------

 

 

As per below error GW2 gateway is not able to extract the domain and uuid from the saml response.

 

------------------------------------

vsm-vcsn0> show saccess session history id 13282         <<<< From SIN-VGW-02

 

 

  ID            : 13282

  Timestamp     : 2022-10-14 21:16:33.517

  Tenant        : INVALID

  Source IP     : 150.129.102.229

  Request ID    :

  Current index : -1

  Next index    : -1

  Service,

    URI               : unknown

  HTTP Request,

    Method : POST

    URI    : '/secure-access/services/saml/login-consumer'

    Query-params,

      ent_name               :

      action                 :

      latitude               :

      longitude              :

      os_type                :

      os_version             :

      client_version         :

      isp                    :

      ep_protection          :

      uuid                   : psi-02.versanow.n

      cb_url                 :

      cookie                 :

      look_for_best          :

      req_device_id          :

      req_eip_info           :

      tunnel_count           :

      force_auth             :

      detect_trusted_network :

      preferred_gw_fqdn      :

      preferred_gw_ip        :

      api_version            :

      tunnel_ip              :

      sess_token             :

      qr_over_mail           :

    Headers,

      host           : psi-01.versanow.net

    Body   : 'SAMLResponse=PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8%2BPHNhbWwycDpSZXNwb25zZSB4bWxuczpzYW1sMnA9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpwcm90b2NvbCIgRGVzdGluYXRpb249Imh0dHBzOi8vcHNpLTAxLnZlcnNhbm93Lm5ldC9zZWN1cmUtYWNjZXNzL3NlcnZpY2VzL3NhbWwvbG9naW4tY29uc3VtZXIiIElEPSJfNWY0NmU0YmI4Y2E1Y2Q4MDA2NTUyNDIwY2E2MjNjYTkiIEluUmVzcG9uc2VUbz0iR29vZ2xlLVNBTUxfOGE2NDZiNGJkNWY5MTM5N2I4OWU5NjlhY2FiMGU4MjYiIElzc3VlSW5zdGFudD0iMjAyMi0xMC0xNFQyMToxNjoyMC4zODhaIiBWZXJzaW9uPSIyLjAiPjxzYW1sMjpJc3N1ZXIgeG1sbnM6c2FtbDI9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iPmh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbS9vL3NhbWwyP2lkcGlkPUMwNGp5YjNjNTwvc2FtbDI6SXNzdWVyPjxzYW1sMnA6U3RhdHVzPjxzYW1sMnA6U3RhdHVzQ29kZSBWYWx1ZT0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnN0YXR1czpTdWNjZXNzIi8%2BPC9zYW1sMnA6U3RhdHVzPjxzYW1sMjpBc3NlcnRpb24geG1sbnM6c2FtbDI9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIElEPSJfOWFiZTRkOWIyNDNlN2VkMGZmNjM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113%3A'

  HTTP Response,

    Code   : 404

    UUID   :

    Headers,

      auth_basic     : no

      auth_negotiate : no

      location       : no

    Body   : ''

  Logs,

saccess_service_process_saml_resp: SAML response for domain '' and uuid 'psi-02.versanow.net:bad2edcdabae6113:' and reqid ''

saccess_service_process_saml_resp: tnt-id not found for uuid:psi-02.versanow.net:bad2edcdabae6113: