-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public API for long-running OBO methods with custom cache key and…
… do not use refresh token for normal OBO (#2820) * Add OBO cache key that can be used to find a token instead of a user assertion. * Rename UserAssertionHash to OboCacheKey and logic to set it. Add method comments. * Add tests. Minor fix in cache filtering. * Update the public API, update related tests. * Fix. * Update logic if token in cache or not with the OBO cache key provided and throw errors. * Fix merge issues. * Create new ILongRunningWebApi interface. Fix how cache key factory creates OBO key. * Nits: add comments, refactor. * Remove RT from token response for normal OBO flow. * Add mock in-memory partitioned cache. * Fix tests. * PR feedback: Rename OboCacheKey to LongRunningOboCacheKey; add logging. * Add tests. * Add exception comment to the public API methods. Remove exception if Initiate is called with already existing key. Update tests. * Add tests for combinations of long-running and normal OBO calls. * Nits. Add aka.ms link. Fix comments.
- Loading branch information
Showing
41 changed files
with
1,531 additions
and
230 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
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.