Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Formalize authc context with direct token (#101384)
This is a refactoring PR that formalizes the logic where an authc token is directly provided when constructing the authenticator context. This is in contrast to the regular logic where authenticators are responsible to extract the token(s) from the thread context. When an authc token is supplied as an argument to the authenticator context constructor, no credentials extraction from the thread context is attempted by any authenticator. If the provided token fails to be authenticated, authentication will fail rather than defaulting to the anonymous user.
- Loading branch information
1 parent
23a8750
commit 4d4d8ce
Showing
7 changed files
with
307 additions
and
173 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
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
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
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
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
Oops, something went wrong.