From d3f690c460d7844f26e900afdb1b06b78816b1ff Mon Sep 17 00:00:00 2001 From: GuyP <105154237+guyp-descope@users.noreply.github.com> Date: Tue, 30 Jul 2024 22:17:17 +0300 Subject: [PATCH] Add SAML IDP logout url (+DefaultRelayState +ForceAuthentication) (#123) --- .../descope/model/ssoapp/OIDCApplicationRequest.java | 4 ++++ .../descope/model/ssoapp/SAMLApplicationRequest.java | 12 ++++++++++++ .../model/ssoapp/SSOApplicationOIDCSettings.java | 1 + .../model/ssoapp/SSOApplicationSAMLSettings.java | 4 ++++ 4 files changed, 21 insertions(+) diff --git a/src/main/java/com/descope/model/ssoapp/OIDCApplicationRequest.java b/src/main/java/com/descope/model/ssoapp/OIDCApplicationRequest.java index 898645ce..9a863979 100644 --- a/src/main/java/com/descope/model/ssoapp/OIDCApplicationRequest.java +++ b/src/main/java/com/descope/model/ssoapp/OIDCApplicationRequest.java @@ -34,4 +34,8 @@ public class OIDCApplicationRequest { * The URL where login page is hosted. */ private String loginPageUrl; + /** + * Optional determine if the IdP should force the user to re-authenticate. + */ + private Boolean forceAuthentication; } diff --git a/src/main/java/com/descope/model/ssoapp/SAMLApplicationRequest.java b/src/main/java/com/descope/model/ssoapp/SAMLApplicationRequest.java index 7f18bdb0..109bbd05 100644 --- a/src/main/java/com/descope/model/ssoapp/SAMLApplicationRequest.java +++ b/src/main/java/com/descope/model/ssoapp/SAMLApplicationRequest.java @@ -79,4 +79,16 @@ public class SAMLApplicationRequest { * "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified". */ private String subjectNameIdFormat; + /** + * Optional default relay state value that will be used in the SAML request. + */ + private String defaultRelayState; + /** + * Optional determine if the IdP should force the user to re-authenticate. + */ + private Boolean forceAuthentication; + /** + * Optional Target URL to which the user will be redirected upon logout completion. + */ + private String logoutRedirectURL; } diff --git a/src/main/java/com/descope/model/ssoapp/SSOApplicationOIDCSettings.java b/src/main/java/com/descope/model/ssoapp/SSOApplicationOIDCSettings.java index dad840a9..0de6eaf9 100644 --- a/src/main/java/com/descope/model/ssoapp/SSOApplicationOIDCSettings.java +++ b/src/main/java/com/descope/model/ssoapp/SSOApplicationOIDCSettings.java @@ -13,4 +13,5 @@ public class SSOApplicationOIDCSettings { private String loginPageUrl; private String issuer; private String discoveryUrl; + private Boolean forceAuthentication; } diff --git a/src/main/java/com/descope/model/ssoapp/SSOApplicationSAMLSettings.java b/src/main/java/com/descope/model/ssoapp/SSOApplicationSAMLSettings.java index 1b97d81f..84793476 100644 --- a/src/main/java/com/descope/model/ssoapp/SSOApplicationSAMLSettings.java +++ b/src/main/java/com/descope/model/ssoapp/SSOApplicationSAMLSettings.java @@ -26,4 +26,8 @@ public class SSOApplicationSAMLSettings { private List acsAllowedCallbacks; private String subjectNameIdType; private String subjectNameIdFormat; + private String defaultRelayState; + private Boolean forceAuthentication; + private String idpLogoutUrl; + private String logoutRedirectURL; }