Skip to content

Commit ba8aea9

Browse files
committed
add files
1 parent 6962ad0 commit ba8aea9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/auth_oidc/test_auth_oidc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,12 @@ def test_2_5_invalid_use_of_ALLOWED_HOSTS(self):
858858
with self.assertRaises(ConfigurationError):
859859
self.create_client(authmechanismproperties=props)
860860

861+
# Create an OIDC configured client with auth mechanism properties `{"OIDC_CALLBACK": "<my_callback>", "ALLOWED_HOSTS": []}`.
862+
props: Dict = {"OIDC_CALLBACK": self.create_request_cb(), "ALLOWED_HOSTS": []}
863+
# Assert it returns a client configuration error.
864+
with self.assertRaises(ConfigurationError):
865+
self.create_client(authmechanismproperties=props)
866+
861867
def test_2_6_ALLOWED_HOSTS_defaults_ignored(self):
862868
# Create a MongoCredential for OIDC with a machine callback.
863869
props = {"OIDC_CALLBACK": self.create_request_cb()}

0 commit comments

Comments
 (0)