Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate how to specify error messaging to the user based on authorization failure #16751

Closed
fiksen99 opened this issue Jan 28, 2020 — with docs.microsoft.com · 2 comments
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

Copy link

It's not clear how to pass specific messaging from the authorization handlers, which has the context on why a request was forbidden, to the authentication's scheme handlers, which formats the response to users when context.Fail has been called.

It looks like something in httpContext.Authentication could provide a way to pass messaging back to the scheme handler (IAuthenticationHandler) but this appears to be a deprecated property and so clarification would be useful.

The rest of the article is detailed and great, I think this final step is missing that would help complete the article


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Rick-Anderson
Copy link
Contributor

Moved to Master issue for Policy-based authorization #16191

@Rick-Anderson
Copy link
Contributor

@fiksen99 good question. Hopefully @blowdart can respond to this and other issues on this doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

3 participants