question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow more failure details for AuthZ handlers

See original GitHub issue

Today there’s no way to signal anything other than which requirements have failed or an explicit Fail https://github.com/dotnet/aspnetcore/blob/main/src/Security/Authorization/Core/src/AuthorizationHandlerContext.cs#L82

This makes it hard for a handler to flow more specific error information/details to the IAuthorizationMiddlewareResultHandler

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
blowdartcommented, Aug 23, 2021

A single cast seems the better approach, less error prone and faster.

0reactions
davidfowlcommented, Aug 23, 2021

Are we sure we want IEnumerable<T> , allocations…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Policy-based authorization in ASP.NET Core
Learn how to create and use authorization policy handlers for enforcing authorization requirements in an ASP.NET Core app.
Read more >
The authorization or connection test fails | Jira ...
Jira Mail Handlers or Service Management Mail Handlers cannot be configured using Oauth 2.0 - The authorization or connection test fails.
Read more >
Authorize with a specific scheme in ASP.NET Core
This article explains how to limit identity to a specific scheme when working with multiple authentication methods.
Read more >
Authorization and authentication - AWS AppSync
This section describes options for configuring security and data protection for your applications. Authorization types.
Read more >
Use API Gateway Lambda authorizers
Enable an Amazon API Gateway Lambda authorizer to authenticate API requests. ... For more information, see Configure a cross-account Lambda authorizer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found