Skip to content

Apply API feedback for authorization failure #35620

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

Merged
merged 3 commits into from
Aug 23, 2021

Conversation

Kahbazi
Copy link
Member

@Kahbazi Kahbazi commented Aug 23, 2021

@Kahbazi Kahbazi requested a review from Tratcher as a code owner August 23, 2021 20:32
@ghost ghost added area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer community-contribution Indicates that the PR has been added by a community member labels Aug 23, 2021
Comment on lines 42 to 53
/// <summary>
/// Calls Fail and stores the failure reasons for future reference. Can be called multiple times.
/// </summary>
/// <param name="reasons">The reasons of failure</param>
/// <returns>The failure.</returns>
public static AuthorizationFailure ExplicitFail(IEnumerable<AuthorizationFailureReason> reasons)
=> new AuthorizationFailure
{
FailCalled = true,
FailureReasons = reasons
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this overload, it was outdated in the review. The new overload is the following one named Failed.

@Tratcher
Copy link
Member

Once updated and merged, please cherry pick to the main branch. We're not auto-merging changes forward to main.

@Tratcher Tratcher merged commit 1173c90 into dotnet:haok/rc1 Aug 23, 2021
@Tratcher
Copy link
Member

Thanks

@Kahbazi Kahbazi deleted the kahbazi/failureRC1 branch August 24, 2021 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants