Skip to content

Conversation

@lavignep007
Copy link
Contributor

This adds the filterContext or actionContext for MVC and WebApi respectively as a resource in the handler when using ResourceAuthorize.

@lavignep007 lavignep007 changed the base branch from master to dev August 12, 2019 13:44
@DavidParks8
Copy link
Owner

Sorry for the delay. I'll give this my full attention and help get this merged.

@DavidParks8
Copy link
Owner

/AzurePipelines run

/// This value is <value>true</value> when the <paramref name="user"/> fulfills the <paramref name="authorizeAttribute"/>; otherwise <value>false</value>.
/// </returns>
Task<bool> IsAuthorizedAsync(IAuthorizationController controller, ClaimsPrincipal user, IAuthorizeData authorizeAttribute);
Task<bool> IsAuthorizedAsync(IAuthorizationController controller, ClaimsPrincipal user, IAuthorizeData authorizeAttribute, object resource = null);
Copy link
Owner

Choose a reason for hiding this comment

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

From the build logs:
##[warning]Microsoft.Design : Replace method 'IResourceAuthorizationHelper.IsAuthorizedAsync(IAuthorizationController, ClaimsPrincipal, IAuthorizeData, object)' with an overload that supplies all default arguments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the delay,

I have fixed it, I guess I screwed up during my initial commit. Thank you for your patience.

@imaxoi
Copy link

imaxoi commented Nov 26, 2019

Great feature, thanks for the effort you put in it!

@DavidParks8 DavidParks8 merged commit 140f732 into DavidParks8:dev Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants