Skip to content

Commit 500c329

Browse files
committed
Update settings
1 parent b3410ca commit 500c329

9 files changed

Lines changed: 39 additions & 90 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ __pycache_
2323
*.key
2424
*.crt
2525
*.pem
26+
27+
settings.py
28+
advanced_settings.py

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Installation
6464
### Dependences ###
6565

6666
* python 2.7
67-
* M2Crypto A Python crypto and SSL toolkit
68-
* dm.xmlsec.binding Cython/lxml based binding for the XML security library
67+
* M2Crypto A Python crypto and SSL toolkit (depends on swig)
68+
* dm.xmlsec.binding Cython/lxml based binding for the XML security library (depends on libxmlsec1-dev)
6969
* isodate An ISO 8601 date/time/duration parser and formater
7070
* defusedxml XML bomb protection for Python stdlib modules
7171

@@ -177,7 +177,7 @@ Demos and test
177177
We said that this toolkit includes a django application demo and a flask applicacion demo,
178178
lets see how fast is deploy them.
179179

180-
** Virtualenv **
180+
***Virtualenv***
181181

182182
The use of a [virtualenv](http://virtualenv.readthedocs.org/en/latest/) is
183183
highly recommended.

demo-django/saml/advanced_settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"security": {
33
"nameIdEncrypted": false,
4-
"authnRequestsSigned": true,
4+
"authnRequestsSigned": false,
55
"logoutRequestSigned": false,
66
"logoutResponseSigned": false,
77
"signMetadata": false,

demo-django/saml/settings.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@
22
"strict": true,
33
"debug": true,
44
"sp": {
5-
"entityId": "http://<sp_domain>/metadata/",
5+
"entityId": "https://<sp_domain>/metadata/",
66
"assertionConsumerService": {
7-
"url": "http://<sp_domain>/?acs"
7+
"url": "https://<sp_domain>/?acs",
8+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
89
},
910
"singleLogoutService": {
10-
"url": "http://<sp_domain>/?sls"
11+
"url": "https://<sp_domain>/?sls",
12+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
1113
},
12-
"NameIDFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified"
14+
"NameIDFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified",
15+
"x509cert": "",
16+
"privateKey": ""
1317
},
1418
"idp": {
1519
"entityId": "https://app.onelogin.com/saml/metadata/<onelogin_connector_id>",
1620
"singleSignOnService": {
17-
"url": "https://app.onelogin.com/trust/saml2/http-post/sso/<onelogin_connector_id>"
21+
"url": "https://app.onelogin.com/trust/saml2/http-post/sso/<onelogin_connector_id>",
22+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
1823
},
1924
"singleLogoutService": {
20-
"url": "https://app.onelogin.com/trust/saml2/http-redirect/slo/<onelogin_connector_id>"
25+
"url": "https://app.onelogin.com/trust/saml2/http-redirect/slo/<onelogin_connector_id>",
26+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
2127
},
2228
"x509cert": "<onelogin_connector_cert>"
2329
}
24-
}
30+
}

demo-django/settings.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

demo-flask/saml/advanced_settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"security": {
33
"nameIdEncrypted": false,
4-
"authnRequestsSigned": true,
4+
"authnRequestsSigned": false,
55
"logoutRequestSigned": false,
66
"logoutResponseSigned": false,
77
"signMetadata": false,

demo-flask/saml/settings.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@
22
"strict": true,
33
"debug": true,
44
"sp": {
5-
"entityId": "http://pytoolkit.com:8000/metadata/",
5+
"entityId": "https://<sp_domain>/metadata/",
66
"assertionConsumerService": {
7-
"url": "http://pytoolkit.com:8000/?acs"
7+
"url": "https://<sp_domain>/?acs",
8+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
89
},
910
"singleLogoutService": {
10-
"url": "http://pytoolkit.com:8000/?sls"
11+
"url": "https://<sp_domain>/?sls",
12+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
1113
},
12-
"NameIDFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified"
14+
"NameIDFormat": "urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified",
15+
"x509cert": "",
16+
"privateKey": ""
1317
},
1418
"idp": {
15-
"entityId": "https://app.onelogin.com/saml/metadata/383123",
19+
"entityId": "https://app.onelogin.com/saml/metadata/<onelogin_connector_id>",
1620
"singleSignOnService": {
17-
"url": "https://app.onelogin.com/trust/saml2/http-post/sso/383123"
21+
"url": "https://app.onelogin.com/trust/saml2/http-post/sso/<onelogin_connector_id>",
22+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
1823
},
1924
"singleLogoutService": {
20-
"url": "https://app.onelogin.com/trust/saml2/http-redirect/slo/383123"
25+
"url": "https://app.onelogin.com/trust/saml2/http-redirect/slo/<onelogin_connector_id>",
26+
"binding": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
2127
},
22-
"x509cert": "MIIDGTCCAoKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBnMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEVMBMGA1UEBwwMU2FudGEgTW9uaWNhMREwDwYDVQQKDAhPbmVMb2dpbjEZMBcGA1UEAwwQYXBwLm9uZWxvZ2luLmNvbTAeFw0xMzA2MDUxNzE2MjBaFw0xODA2MDUxNzE2MjBaMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRUwEwYDVQQHDAxTYW50YSBNb25pY2ExETAPBgNVBAoMCE9uZUxvZ2luMRkwFwYDVQQDDBBhcHAub25lbG9naW4uY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsalDL15zSKeEGy9c0Hao7+G02x6k/MlZuCwEvkPKUcl9QF/q0584lta735hmiZSuWOFQDNQ4VT53VevjAhOtzLJOsa8wcZ+SA1s3j4bNcpUIAHltb4Az6NC7U2/LatfnwscOazEJnVsfL4aaBdpIHBFQ6Ed0StD0AfB6Ci0hURwIDAQABo4HUMIHRMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFHm3fLi+Q1zMc3guMyHy5AHdQvdgMIGRBgNVHSMEgYkwgYaAFHm3fLi+Q1zMc3guMyHy5AHdQvdgoWukaTBnMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEVMBMGA1UEBwwMU2FudGEgTW9uaWNhMREwDwYDVQQKDAhPbmVMb2dpbjEZMBcGA1UEAwwQYXBwLm9uZWxvZ2luLmNvbYIBATAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcNAQEFBQADgYEANZvzlB1Aq84AdOvsn2XKxBB/PmNZLqnM1VWRPaNcvjafx7eHd5qayXFNQz+bOLujENmgAm5padbydG89SeefpOGcY2TMsVt0RUzxTnN3Zq5G6Ja2fAKOEX01ejdoPPMmStqqSw8k1wPUU8uLYJG5wmjf0rCb8RVaeAwMc+wcEIA="
28+
"x509cert": "<onelogin_connector_cert>"
2329
}
24-
}
30+
}}

demo-flask/saml/settings.json.old

Lines changed: 0 additions & 45 deletions
This file was deleted.

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[wheel]
2+
universal = 1
3+

0 commit comments

Comments
 (0)