IPSec IKEv2 via FortiAuthenticator SAML dialup VPN
Hello guys,
I am currently facing an issue with user authentication when connecting to dialup IPSec IKEv2 VPN using SAML authentication through FortiAuthenticator.
Ending with this error:

Generated some random hash or something instead of user name and reason is SAML auth resp is not detected.
Here is part my configuration:
config system global
set auth-ike-saml-port 1001
set remoteauthtimeout 120
config user saml
edit "saml_FAC"
set cert "*.secret-2026"
set entity-id "http://vpn.secret.cz:1001/remote/saml/metadata/"
set single-sign-on-url "https://vpn.secret.cz:1001/remote/saml/login/"
set single-logout-url "https://vpn.secret.cz:1001/remote/saml/logout/"
set idp-entity-id "http://fac.secret.cz:4433/saml-idp/ipsecvpn/metadata/"
set idp-single-sign-on-url "https://fac.secret.cz:4433/saml-idp/ipsecvpn/login/"
set idp-single-logout-url "https://fac.secret.cz:4433/saml-idp/ipsecvpn/logout/"
set idp-cert "FAC-IDP"
set user-name "users"
set group-name "groupname"
set digest-method sha1
next
end
config system interface
edit "wan2"
set vdom "root"
set ip 10.xx.xx.230 255.255.255.224
set allowaccess ping
set vlanforward enable
set type physical
set alias "wan2"
set ike-saml-server "saml_FAC"
set role wan
set snmp-index 3
next
end
config vpn ipsec phase1-interface
edit "FortiClient_VPN"
set type dynamic
set interface "wan2"
set ike-version 2
set local-gw 10.xx.xx.230
set peertype any
set net-device disable
set mode-cfg enable
set ipv4-dns-server1 192.xx.xx.209
set proposal aes128-sha256 aes256-sha256
set dhgrp 20 21
set eap enable
set eap-identity send-request
set network-overlay enable
set network-id 1
set transport auto
set ipv4-start-ip 10.212.180.5
set ipv4-end-ip 10.212.180.60
set psksecret ENC xxx
set negotiate-timeout 120
next
FortiAuthenticator Idp provider:

 And some logs of user authentication via FortiAuthenticator.

 
From my perspective, it seems that authentication through FortiAuthenticator completes successfully, but for some reason the response is not properly delivered to the FortiGate. Unfortunately, I haven’t been able to determine why this is happening.
Has anyone experienced a similar issue and found a way to resolve it?
Thank you very much for any advice.
