Skip to content

Commit 807ec0a

Browse files
authored
Updated fedarated.py splitting long saml attribute name
Split lines to continue to stay under 80 character width limit
1 parent 92e271a commit 807ec0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uw_saml2/idp/federated.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ class FredHutchAzureIdp(IdpConfig):
106106
acustomed to using ePPN
107107
"""
108108
_azure_tenant_id = '0054a3ea-b394-418b-ad1a-174138231fd6'
109+
_xmlsoap_prefix = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims'
109110
entity_id = f'https://sts.windows.net/{_azure_tenant_id}/'
110111
sso_url = f'https://login.microsoftonline.com/{_azure_tenant_id}/saml2'
111-
id_attribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/employeeid'
112+
id_attribute = f'{_xmlsoap_prefix}/employeeid'
112113
x509_cert = '''
113114
MIIC8DCCAdigAwIBAgIQGB680XRFNZhCkepWMRYORjANBgkqhkiG9w0BAQsFADA0
114115
MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBDZXJ0aWZp

0 commit comments

Comments
 (0)