-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape ampersands when creating AuthnRequests
In some cases, the IdP singleSignOnService or singleLogoutService url values will contain a query string and that query string will contain an ampersand ("&"). If not escaped, this ampersand will prevent valid XML creation by python3-saml and thus the IdP will not be able to correctly parse the received AuthnRequest.
- Loading branch information
Showing
3 changed files
with
77 additions
and
1 deletion.
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
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,47 @@ | ||
{ | ||
"strict": false, | ||
"debug": false, | ||
"custom_base_path": "../../../tests/data/customPath/", | ||
"sp": { | ||
"entityId": "http://stuff.com/endpoints/metadata.php", | ||
"assertionConsumerService": { | ||
"url": "http://stuff.com/endpoints/endpoints/acs.php" | ||
}, | ||
"singleLogoutService": { | ||
"url": "http://stuff.com/endpoints/endpoints/sls.php" | ||
}, | ||
"NameIDFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" | ||
}, | ||
"idp": { | ||
"entityId": "http://idp.example.com/", | ||
"singleSignOnService": { | ||
"url": "http://idp.example.com/SSOService.php?arg1=a&arg2=b" | ||
}, | ||
"singleLogoutService": { | ||
"url": "http://idp.example.com/SingleLogoutService.php?arg1=a&arg2=b" | ||
}, | ||
"x509cert": "MIICgTCCAeoCCQCbOlrWDdX7FTANBgkqhkiG9w0BAQUFADCBhDELMAkGA1UEBhMCTk8xGDAWBgNVBAgTD0FuZHJlYXMgU29sYmVyZzEMMAoGA1UEBxMDRm9vMRAwDgYDVQQKEwdVTklORVRUMRgwFgYDVQQDEw9mZWlkZS5lcmxhbmcubm8xITAfBgkqhkiG9w0BCQEWEmFuZHJlYXNAdW5pbmV0dC5ubzAeFw0wNzA2MTUxMjAxMzVaFw0wNzA4MTQxMjAxMzVaMIGEMQswCQYDVQQGEwJOTzEYMBYGA1UECBMPQW5kcmVhcyBTb2xiZXJnMQwwCgYDVQQHEwNGb28xEDAOBgNVBAoTB1VOSU5FVFQxGDAWBgNVBAMTD2ZlaWRlLmVybGFuZy5ubzEhMB8GCSqGSIb3DQEJARYSYW5kcmVhc0B1bmluZXR0Lm5vMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDivbhR7P516x/S3BqKxupQe0LONoliupiBOesCO3SHbDrl3+q9IbfnfmE04rNuMcPsIxB161TdDpIesLCn7c8aPHISKOtPlAeTZSnb8QAu7aRjZq3+PbrP5uW3TcfCGPtKTytHOge/OlJbo078dVhXQ14d1EDwXJW1rRXuUt4C8QIDAQABMA0GCSqGSIb3DQEBBQUAA4GBACDVfp86HObqY+e8BUoWQ9+VMQx1ASDohBjwOsg2WykUqRXF+dLfcUH9dWR63CtZIKFDbStNomPnQz7nbK+onygwBspVEbnHuUihZq3ZUdmumQqCw4Uvs/1Uvq3orOo/WJVhTyvLgFVK2QarQ4/67OZfHd7R+POBXhophSMv1ZOo" | ||
}, | ||
"security": { | ||
"authnRequestsSigned": false, | ||
"wantAssertionsSigned": false, | ||
"signMetadata": false | ||
}, | ||
"contactPerson": { | ||
"technical": { | ||
"givenName": "technical_name", | ||
"emailAddress": "[email protected]" | ||
}, | ||
"support": { | ||
"givenName": "support_name", | ||
"emailAddress": "[email protected]" | ||
} | ||
}, | ||
"organization": { | ||
"en-US": { | ||
"name": "sp_test", | ||
"displayname": "SP test", | ||
"url": "http://sp.example.com" | ||
} | ||
} | ||
} |
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