Re: Question about Authorization Manager
- From: John Parrish <ask@xxxxxx>
- Date: Sun, 19 Feb 2006 18:38:02 -0500
Nicole Calinoiu wrote:
If you were working more closely against the AzMan API (as opposed to via a wrapper like the security app block), you would realize that there is only one way of querying a user's rights to perform an action, and that is at the _operation_ level (via the IAzClientContext:AccessCheck method). Tasks and roles are essentially just convenience "buckets" meant to help when assigning permissions to users. However, an application should be interested only in operations. Since you have only one operation, at the underlying AzMan level, its the only securable for which your application can request access permissions.
Even with access checks being done only at the operation level, if I check access on a task which is comprised only of 2 tasks, each of which have operations, the security access application block WILL throw an exception.. that is related to the code I had posted.
I am going to trace the block more, to see if it is simply a failure to crawl the task->operation associations before throwing the error.
This seems rather unlikely to be causing your problem, which is presumably occuring because an access check that you believe should fail is actually passing. This wouldn't be happening if an exception were thrown from the access check method. Instead of trying to troubleshoot this blindly, could you perhaps post the code you are using to attempt your access check?
I will post back on this, the issue I first posted was a completely different problem. I tried to provide a breakdown of the task / operation structure, the point is that by being granted rights to 1 operation which is essentially 1 of 2 that define a task, and not being granted rights to the other operation which is wrapped by the associated task, the call the check access still returns true.
Thanks for the answer, I will provide more concrete information. I had hoped not to have to use the AzMan COM API directly but I may have to in order to decide if/where the security block is not correct.
.
- Follow-Ups:
- Re: Question about Authorization Manager
- From: Nicole Calinoiu
- Re: Question about Authorization Manager
- References:
- Question about Authorization Manager
- From: John
- Re: Question about Authorization Manager
- From: John
- Re: Question about Authorization Manager
- From: John
- Re: Question about Authorization Manager
- From: Nicole Calinoiu
- Question about Authorization Manager
- Prev by Date: Re: How to encrypt/decrypt a file
- Next by Date: Re: System.Security.SecurityException was unhandled
- Previous by thread: Re: Question about Authorization Manager
- Next by thread: Re: Question about Authorization Manager
- Index(es):
Relevant Pages
|