You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: descope/management/sso_application.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,7 @@ def create_saml_application(
79
79
default_relay_state: Optional[str] =None,
80
80
force_authentication: Optional[bool] =False,
81
81
logout_redirect_url: Optional[str] =None,
82
+
default_signature_algorithm: Optional[str] =None,
82
83
) ->dict:
83
84
"""
84
85
Create a new SAML sso application with the given name. SSO application IDs are provisioned automatically, but can be provided
@@ -104,6 +105,7 @@ def create_saml_application(
104
105
default_relay_state (str): Optional define the default relay state.
105
106
force_authentication (bool): Optional determine if the IdP should force the user to re-authenticate.
106
107
logout_redirect_url (str): Optional Target URL to which the user will be redirected upon logout completion.
108
+
default_signature_algorithm (str): Optional signature algorithm for SAML responses. Use "sha256" to opt in to SHA-256. Leave empty for the default (SHA-1). Only applies to IdP-initiated flows.
107
109
108
110
Return value (dict):
109
111
Return dict in the format
@@ -151,6 +153,7 @@ def create_saml_application(
151
153
default_relay_state,
152
154
force_authentication,
153
155
logout_redirect_url,
156
+
default_signature_algorithm,
154
157
),
155
158
)
156
159
returnresponse.json()
@@ -217,6 +220,7 @@ def update_saml_application(
217
220
default_relay_state: Optional[str] =None,
218
221
force_authentication: Optional[bool] =False,
219
222
logout_redirect_url: Optional[str] =None,
223
+
default_signature_algorithm: Optional[str] =None,
220
224
):
221
225
"""
222
226
Update an existing SAML sso application with the given parameters. IMPORTANT: All parameters are used as overrides
@@ -242,6 +246,7 @@ def update_saml_application(
242
246
default_relay_state (str): Optional define the default relay state.
243
247
force_authentication (bool): Optional determine if the IdP should force the user to re-authenticate.
244
248
logout_redirect_url (str): Optional Target URL to which the user will be redirected upon logout completion.
249
+
default_signature_algorithm (str): Optional signature algorithm for SAML responses. Use "sha256" to opt in to SHA-256. Leave empty for the default (SHA-1). Only applies to IdP-initiated flows.
0 commit comments