@@ -123,6 +123,7 @@ def __init__(
123123 attribute_mapping : Optional [AttributeMapping ] = None ,
124124 role_mappings : Optional [List [RoleMapping ]] = None ,
125125 default_sso_roles : Optional [List [str ]] = None ,
126+ idp_additional_certs : Optional [List [str ]] = None ,
126127 # NOTICE - the following fields should be overridden only in case of SSO migration, otherwise, do not modify these fields
127128 sp_acs_url : Optional [str ] = None ,
128129 sp_entity_id : Optional [str ] = None ,
@@ -133,6 +134,7 @@ def __init__(
133134 self .attribute_mapping = attribute_mapping
134135 self .role_mappings = role_mappings
135136 self .default_sso_roles = default_sso_roles
137+ self .idp_additional_certs = idp_additional_certs
136138 self .sp_acs_url = sp_acs_url
137139 self .sp_entity_id = sp_entity_id
138140
@@ -174,7 +176,7 @@ def load_settings(
174176 Return value (dict):
175177 Containing the loaded SSO settings information.
176178 Return dict in the format:
177- {"tenant": {"id": "T2AAAA", "name": "myTenantName", "selfProvisioningDomains": [], "customAttributes": {}, "authType": "saml", "domains": ["lulu", "kuku"]}, "saml": {"idpEntityId": "", "idpSSOUrl": "", "idpCertificate": "", "idpMetadataUrl": "https://dummy.com/metadata", "spEntityId": "", "spACSUrl": "", "spCertificate": "", "attributeMapping": {"name": "name", "email": "email", "username": "", "phoneNumber": "phone", "group": "", "givenName": "", "middleName": "", "familyName": "", "picture": "", "customAttributes": {}}, "groupsMapping": [], "redirectUrl": ""}, "oidc": {"name": "", "clientId": "", "clientSecret": "", "redirectUrl": "", "authUrl": "", "tokenUrl": "", "userDataUrl": "", "scope": [], "JWKsUrl": "", "userAttrMapping": {"loginId": "sub", "username": "", "name": "name", "email": "email", "phoneNumber": "phone_number", "verifiedEmail": "email_verified", "verifiedPhone": "phone_number_verified", "picture": "picture", "givenName": "given_name", "middleName": "middle_name", "familyName": "family_name"}, "manageProviderTokens": False, "callbackDomain": "", "prompt": [], "grantType": "authorization_code", "issuer": ""}}
179+ {"tenant": {"id": "T2AAAA", "name": "myTenantName", "selfProvisioningDomains": [], "customAttributes": {}, "authType": "saml", "domains": ["lulu", "kuku"]}, "saml": {"idpEntityId": "", "idpSSOUrl": "", "idpCertificate": "", "idpAdditionalCertificates": [], "idpMetadataUrl": "https://dummy.com/metadata", "spEntityId": "", "spACSUrl": "", "spCertificate": "", "attributeMapping": {"name": "name", "email": "email", "username": "", "phoneNumber": "phone", "group": "", "givenName": "", "middleName": "", "familyName": "", "picture": "", "customAttributes": {}}, "groupsMapping": [], "redirectUrl": ""}, "oidc": {"name": "", "clientId": "", "clientSecret": "", "redirectUrl": "", "authUrl": "", "tokenUrl": "", "userDataUrl": "", "scope": [], "JWKsUrl": "", "userAttrMapping": {"loginId": "sub", "username": "", "name": "name", "email": "email", "phoneNumber": "phone_number", "verifiedEmail": "email_verified", "verifiedPhone": "phone_number_verified", "picture": "picture", "givenName": "given_name", "middleName": "middle_name", "familyName": "family_name"}, "manageProviderTokens": False, "callbackDomain": "", "prompt": [], "grantType": "authorization_code", "issuer": ""}}
178180
179181 Raise:
180182 AuthException: raised if load configuration operation fails
@@ -537,6 +539,7 @@ def _compose_configure_saml_settings_body(
537539 "idpUrl" : settings .idp_url ,
538540 "entityId" : settings .idp_entity_id ,
539541 "idpCert" : settings .idp_cert ,
542+ "idpAdditionalCerts" : settings .idp_additional_certs ,
540543 "spACSUrl" : settings .sp_acs_url ,
541544 "spEntityId" : settings .sp_entity_id ,
542545 "attributeMapping" : attr_mapping ,
0 commit comments