-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #253: Check/decide the behavior of VerifyUserHasAnyAcceptedScop…
…e() (#259) * Fixes #253: - Checks that the HttpContext is not null, otherwise throws an ArgumentNullException - If there is no authenticated user, the HTTP response status code is set to 401 - If there is an authenticated user, the HTTP response code is set to 403 and a message tells which scopes to acquire Updated the tests with the new behavior. Updated the sample to surface a nice execption to the developer. * Update src/Microsoft.Identity.Web/Resource/ScopesRequiredHttpContextExtensions.cs Co-authored-by: Marsh Macy <[email protected]> * removing an un-needed space * Update src/Microsoft.Identity.Web/Resource/ScopesRequiredHttpContextExtensions.cs Co-authored-by: jennyf19 <[email protected]> Co-authored-by: Marsh Macy <[email protected]> Co-authored-by: jennyf19 <[email protected]>
- Loading branch information
1 parent
35d83f6
commit 99d5542
Showing
5 changed files
with
64 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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