Skip to content

Commit

Permalink
Disallow comma character in authMechanismProperties connection string…
Browse files Browse the repository at this point in the history
… value
  • Loading branch information
blink1073 committed May 29, 2024
1 parent 8456293 commit 37b9a4c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/auth/legacy/connection-string.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,21 +557,6 @@
}
}
},
{
"description": "should handle a complicated url-encoded TOKEN_RESOURCE (MONGODB-OIDC)",
"uri": "mongodb://user@localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:azure,TOKEN_RESOURCE:abc%2Cd%25ef%3Ag%26hi",
"valid": true,
"credential": {
"username": "user",
"password": null,
"source": "$external",
"mechanism": "MONGODB-OIDC",
"mechanism_properties": {
"ENVIRONMENT": "azure",
"TOKEN_RESOURCE": "abc,d%ef:g&hi"
}
}
},
{
"description": "should url-encode a TOKEN_RESOURCE (MONGODB-OIDC)",
"uri": "mongodb://user@localhost/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:azure,TOKEN_RESOURCE:a$b",
Expand Down

0 comments on commit 37b9a4c

Please sign in to comment.