-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished authentication integration with saml2 (replacement of shibbo…
…leth)
- Loading branch information
1 parent
1b415a2
commit b492a8a
Showing
20 changed files
with
1,209 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ nginx.conf | |
# Docker Compose | ||
docker-compose.yml | ||
.env.local | ||
|
||
saml2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,4 +163,6 @@ cython_debug/ | |
# Django | ||
django_static/ | ||
|
||
archive/ | ||
archive/ | ||
|
||
saml2/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__author__ = 'rohe0002' | ||
__all__ = ["adfs_v1x", "adfs_v20", "basic", "saml_uri", "shibboleth_uri"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CLAIMS = 'http://schemas.xmlsoap.org/claims/' | ||
|
||
|
||
MAP = { | ||
"identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", | ||
'fro': { | ||
CLAIMS+'commonname': 'commonName', | ||
CLAIMS+'emailaddress': 'emailAddress', | ||
CLAIMS+'group': 'group', | ||
CLAIMS+'upn': 'upn', | ||
}, | ||
'to': { | ||
'commonName': CLAIMS+'commonname', | ||
'emailAddress': CLAIMS+'emailaddress', | ||
'group': CLAIMS+'group', | ||
'upn': CLAIMS+'upn', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
CLAIMS = 'http://schemas.xmlsoap.org/claims/' | ||
COM_WS_CLAIMS = 'http://schemas.xmlsoap.com/ws/2005/05/identity/claims/' | ||
MS_CLAIMS = 'http://schemas.microsoft.com/ws/2008/06/identity/claims/' | ||
ORG_WS_CLAIMS = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/' | ||
|
||
|
||
MAP = { | ||
"identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", | ||
'fro': { | ||
CLAIMS+'commonname': 'commonName', | ||
CLAIMS+'group': 'group', | ||
COM_WS_CLAIMS+'denyonlysid': 'denyOnlySid', | ||
MS_CLAIMS+'authenticationmethod': 'authenticationMethod', | ||
MS_CLAIMS+'denyonlyprimarygroupsid': 'denyOnlyPrimaryGroupSid', | ||
MS_CLAIMS+'denyonlyprimarysid': 'denyOnlyPrimarySid', | ||
MS_CLAIMS+'groupsid': 'groupSid', | ||
MS_CLAIMS+'primarygroupsid': 'primaryGroupSid', | ||
MS_CLAIMS+'primarysid': 'primarySid', | ||
MS_CLAIMS+'role': 'role', | ||
MS_CLAIMS+'windowsaccountname': 'windowsAccountName', | ||
ORG_WS_CLAIMS+'emailaddress': 'emailAddress', | ||
ORG_WS_CLAIMS+'givenname': 'givenName', | ||
ORG_WS_CLAIMS+'name': 'name', | ||
ORG_WS_CLAIMS+'nameidentifier': 'nameId', | ||
ORG_WS_CLAIMS+'privatepersonalidentifier': 'privatePersonalId', | ||
ORG_WS_CLAIMS+'surname': 'surname', | ||
ORG_WS_CLAIMS+'upn': 'upn', | ||
}, | ||
'to': { | ||
'authenticationMethod': MS_CLAIMS+'authenticationmethod', | ||
'commonName': CLAIMS+'commonname', | ||
'denyOnlyPrimaryGroupSid': MS_CLAIMS+'denyonlyprimarygroupsid', | ||
'denyOnlyPrimarySid': MS_CLAIMS+'denyonlyprimarysid', | ||
'denyOnlySid': COM_WS_CLAIMS+'denyonlysid', | ||
'emailAddress': ORG_WS_CLAIMS+'emailaddress', | ||
'givenName': ORG_WS_CLAIMS+'givenname', | ||
'group': CLAIMS+'group', | ||
'groupSid': MS_CLAIMS+'groupsid', | ||
'name': ORG_WS_CLAIMS+'name', | ||
'nameId': ORG_WS_CLAIMS+'nameidentifier', | ||
'primaryGroupSid': MS_CLAIMS+'primarygroupsid', | ||
'primarySid': MS_CLAIMS+'primarysid', | ||
'privatePersonalId': ORG_WS_CLAIMS+'privatepersonalidentifier', | ||
'role': MS_CLAIMS+'role', | ||
'surname': ORG_WS_CLAIMS+'surname', | ||
'upn': ORG_WS_CLAIMS+'upn', | ||
'windowsAccountName': MS_CLAIMS+'windowsaccountname', | ||
} | ||
} |
Oops, something went wrong.