forked from jupyterhub/oauthenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note, the current mock setup delivers different handlers (for ingesting sample users) depending on whether id tokens are intended to be supplied. The fixtures (for preparing a mock client and preconfigured authenticator) thus need specialisation depending on whether the id token is being used. However, the current mock also requires that tests individually manage the packaging of the id token when loading into the mock client's handler; the handler syntax is different between the two cases. This means that to test that JWT id tokens and JSON userinfo endpoints provide equivalent behaviour requires changes in both the test (in the preamble) and in fixtures (compared to unmodified tests). This has led to some code duplication, which would be a target for future refactoring.
- Loading branch information
Showing
1 changed file
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters