-
Notifications
You must be signed in to change notification settings - Fork 15
MVC Context in Handler #63
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
Conversation
|
Sorry for the delay. I'll give this my full attention and help get this merged. |
src/Microsoft.Owin.Security.Authorization.Mvc/ResourceAuthorizeAttribute.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Owin.Security.Authorization.Mvc/ResourceAuthorizeAttribute.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Owin.Security.Authorization.Mvc/ResourceAuthorizeAttribute.cs
Outdated
Show resolved
Hide resolved
|
/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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…eAttribute.cs Co-Authored-By: David Parks <[email protected]>
…eAttribute.cs Co-Authored-By: David Parks <[email protected]>
…eAttribute.cs Co-Authored-By: David Parks <[email protected]>
|
Great feature, thanks for the effort you put in it! |
This adds the filterContext or actionContext for MVC and WebApi respectively as a resource in the handler when using ResourceAuthorize.