File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -858,6 +858,12 @@ def test_2_5_invalid_use_of_ALLOWED_HOSTS(self):
858
858
with self .assertRaises (ConfigurationError ):
859
859
self .create_client (authmechanismproperties = props )
860
860
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
+
861
867
def test_2_6_ALLOWED_HOSTS_defaults_ignored (self ):
862
868
# Create a MongoCredential for OIDC with a machine callback.
863
869
props = {"OIDC_CALLBACK" : self .create_request_cb ()}
You can’t perform that action at this time.
0 commit comments