Skip to content

Commit

Permalink
Changing to non encrypted nameID format
Browse files Browse the repository at this point in the history
  • Loading branch information
tpfau committed Feb 12, 2024
1 parent a6bba25 commit e71ffce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,5 @@ app/saml/saml_data/settings.json
# dev databases
mongodb/**/*
data/**/*

keyfile.key
2 changes: 1 addition & 1 deletion app/saml/saml_data/advanced_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"wantMessagesSigned": true,
"wantAssertionsSigned": true,
"wantNameId" : true,
"wantNameIdEncrypted": true,
"wantNameIdEncrypted": false,
"wantAssertionsEncrypted": true,
"allowSingleLabelDomains": false,
"signatureAlgorithm": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
Expand Down
3 changes: 1 addition & 2 deletions app/saml/saml_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ async def saml_callback(request: Request):
else:
sessionData = {}
sessionData["samlUserdata"] = auth.get_attributes()
logger.info(auth.get_nameid())
sessionData["samlNameId"] = decrypt_name_id(auth.get_nameid())
sessionData["samlNameId"] = auth.get_nameid()
sessionData["samlNameIdFormat"] = auth.get_nameid_format()
sessionData["samlNameIdNameQualifier"] = auth.get_nameid_nq()
sessionData["samlNameIdSPNameQualifier"] = auth.get_nameid_spnq()
Expand Down

0 comments on commit e71ffce

Please sign in to comment.