Skip to content

Commit

Permalink
update connection string logic
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 29, 2024
1 parent 46836a5 commit 3a719c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions source/auth/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -1201,11 +1201,6 @@ in the MONGODB-OIDC specification, including sections or blocks that specificall

#### [MongoCredential](#mongocredential) Properties

> [!NOTE]
> Drivers MUST parse the `TOKEN_RESOURCE` by splitting only on the first `:` character. Drivers MUST document that users
> must specify `TOKEN_RESOURCE` as part of a `MongoClient` option it contains a comma `,` character, since it would
> interfere with the parsing rules for `authMechanismProperties`.

- username\
MAY be specified. Its meaning varies depending on the OIDC provider integration used.

Expand Down
7 changes: 5 additions & 2 deletions source/connection-string/connection-string-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,11 @@ The values in connection options MUST be URL decoded by the parser. The values c
```

- Key value pairs: A value that represents one or more key and value pairs. Multiple key value pairs are delimited by a
comma (","). The key is everything up to the first colon sign (":") and the value is everything afterwards. If any
keys or values containing a comma (",") or a colon (":") they must be URL encoded. For example:
comma (","). The key is everything up to the first colon sign (":") and the value is everything afterwards. Drivers
MUST handle subsequent colon signs (":") within the value, unless otherwise specified in this document.\
If any keys
or values contain a comma (",") they MUST not be provided as part of the connection string, since it would interfere
with parsing. For example:

```
?readPreferenceTags=dc:ny,rack:1
Expand Down

0 comments on commit 3a719c7

Please sign in to comment.