diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2017-07-26 04:34:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 04:34:52 -0700 |
commit | 8ca067dce4dea1fb5dd4035e4f1036a47e984a17 (patch) | |
tree | e41e37fca93ce47827a190f8479387b4915ab0d2 /tests/test_51_client.py | |
parent | 47cbd128516d5994591e9ae8d3068bf43196f018 (diff) | |
parent | 6d2200808b618f0fc8b163d7e03e16c2827c4eeb (diff) | |
download | pysaml2-8ca067dce4dea1fb5dd4035e4f1036a47e984a17.tar.gz |
Merge branch 'master' into feature-hide-assertion-consumer-service
Diffstat (limited to 'tests/test_51_client.py')
-rw-r--r-- | tests/test_51_client.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_51_client.py b/tests/test_51_client.py index 1806de41..937e0e20 100644 --- a/tests/test_51_client.py +++ b/tests/test_51_client.py @@ -280,6 +280,17 @@ class TestClient: assert nid_policy.allow_create == "false" assert nid_policy.format == saml.NAMEID_FORMAT_TRANSIENT + def test_create_auth_request_unset_force_authn(self): + req_id, req = self.client.create_authn_request( + "http://www.example.com/sso", sign=False, message_id="id1") + assert bool(req.force_authn) == False + + def test_create_auth_request_set_force_authn(self): + req_id, req = self.client.create_authn_request( + "http://www.example.com/sso", sign=False, message_id="id1", + force_authn="true") + assert bool(req.force_authn) == True + def test_create_auth_request_nameid_policy_allow_create(self): conf = config.SPConfig() conf.load_file("sp_conf_nameidpolicy") |