Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

resource-based AuthorizationHandler is invoked for other resource types. #494

Closed
VeronicaWasson opened this issue Sep 24, 2015 · 1 comment
Assignees
Milestone

Comments

@VeronicaWasson
Copy link

I have two authZ handlers that derive from AuthorizationHandler<TRequirement, TResource> with different resource types:

services.AddInstance<IAuthorizationHandler>(new FooAuthorizationHandler());
services.AddInstance<IAuthorizationHandler>(new BarAuthorizationHandler());

The AuthorizationService runs both handlers, passing in null when the resource type does not match. Is this the intended behavior? If so, I need to check for null resource and exit.

@HaoK
Copy link
Member

HaoK commented Oct 21, 2015

defc9fa

@HaoK HaoK closed this as completed Oct 21, 2015
@HaoK HaoK added 3 - Done and removed 2 - Working labels Oct 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants