Skip to content

Commit 3dc84d1

Browse files
authored
DRIVERS-2415 minor OIDC clarifications (#1842)
1 parent d3f3836 commit 3dc84d1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/auth/auth.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,6 +1830,8 @@ def auth(connection):
18301830
if e.code == 18:
18311831
invalidate(access_token)
18321832
access_token, _ = get_access_token()
1833+
else:
1834+
raise e # Raise other errors.
18331835
18341836
connection.oidc_cache.access_token = access_token
18351837
sasl_start(connection, payload={"jwt": access_token})

source/auth/tests/mongodb-oidc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ source the `secrets-export.sh` file and use the associated env variables in your
199199
}
200200
```
201201

202-
- Perform a `find` operation that fails.
202+
- Perform a `insert` operation that fails.
203203
- Assert that the callback was called 2 times.
204204
- Close the client.
205205

@@ -209,7 +209,7 @@ source the `secrets-export.sh` file and use the associated env variables in your
209209
- Populate the *Client Cache* with a valid access token to enforce Speculative Authentication.
210210
- Perform an `insert` operation that succeeds.
211211
- Assert that the callback was not called.
212-
- Assert there were no `SaslStart` commands executed.
212+
- Assert there were no `saslStart` commands executed.
213213
- Set a fail point for `insert` commands of the form:
214214

215215
```javascript
@@ -229,7 +229,7 @@ source the `secrets-export.sh` file and use the associated env variables in your
229229

230230
- Perform an `insert` operation that succeeds.
231231
- Assert that the callback was called once.
232-
- Assert there were `SaslStart` commands executed.
232+
- Assert there were `saslStart` commands executed.
233233
- Close the client.
234234

235235
#### 4.5 Reauthentication Succeeds when a Session is involved

0 commit comments

Comments
 (0)