Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 7, 2024
1 parent f166270 commit ea6040e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/auth/tests/mongodb-oidc.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ source the `secrets-export.sh` file and use the associated env variables in your
**2.4 Invalid Client Configuration with Callback**

- Create an OIDC configured client with an OIDC callback and auth mechanism property `ENVIRONMENT:test`.
- Assert it returns a client configuration error.
- Assert it returns a client configuration error upon client creation, or client connect if your driver validates on
connection.

**2.5 Invalid use of ALLOWED_HOSTS**

- Create an OIDC configured client with auth mechanism properties `{"ENVIRONMENT": "azure", "ALLOWED_HOSTS": []}`.
- Assert it returns a client configuration error.
- Assert it returns a client configuration error upon client creation, or client connect if your driver validates on
connection.

### (3) Authentication Failure

Expand Down Expand Up @@ -120,9 +122,9 @@ source the `secrets-export.sh` file and use the associated env variables in your
```

- Perform a `find` operation that fails.
- Assert that the human callback has been called once.
- Assert that the callback has been called once.
- Perform a `find` operation that succeeds.
- Assert that the human callback has been called once.
- Assert that the callback has been called once.
- Close the client.

### (4) Reauthentication
Expand Down

0 comments on commit ea6040e

Please sign in to comment.