Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/auth/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -1830,6 +1830,8 @@ def auth(connection):
if e.code == 18:
invalidate(access_token)
access_token, _ = get_access_token()
else:
raise e # Raise other errors.

connection.oidc_cache.access_token = access_token
sasl_start(connection, payload={"jwt": access_token})
Expand Down
6 changes: 3 additions & 3 deletions source/auth/tests/mongodb-oidc.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ source the `secrets-export.sh` file and use the associated env variables in your
}
```

- Perform a `find` operation that fails.
- Perform a `insert` operation that fails.
- Assert that the callback was called 2 times.
- Close the client.

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

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

- Perform an `insert` operation that succeeds.
- Assert that the callback was called once.
- Assert there were `SaslStart` commands executed.
- Assert there were `saslStart` commands executed.
- Close the client.

#### 4.5 Reauthentication Succeeds when a Session is involved
Expand Down
Loading