Re: Question about Authorization Manager
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Wed, 22 Feb 2006 08:49:38 -0500
"John Parrish" <ask@xxxxxx> wrote in message
news:%23u5Owr2NGHA.140@xxxxxxxxxxxxxxxxxxxxxxx
<snip> (Personally, I probably would have either thrown an
exception or forced it to always fail, but then I tend to be much less
forgiving in my design decisions than the nice folks at Microsoft...)
They do throw an exception if an empty task is passed for a check.
Reference the code I posted earlier from the AzManProvider.cs file.
Not quite the same thing as I was discussing here. Throwing an exception
when the task specified for the Authorize method is empty is different from
throwing an exception when the specified task contains an empty nested task
(as I thought yours did).
I apologize that I had jumped around within two different problems but
they are related. Hopefully you can see in the diagram I posted above that
the definition does indeed include two operations.
Yup, and this helps narrow down the problem considerably. ;) Does your
version of AzManAuthorizationProvider.cs contain a method named
GetTaskOperations? If so, you'll probably find that it only returns
operations that are direct children of the specified task. What you'll need
to do is change the method to operate recursively on the specified task so
that operations are returned from any number of levels of nested tasks. If
you need help with the implementation details, please post a copy of your
version of the method since it may differ from those in later EntLib
releases.
.
- Follow-Ups:
- Re: Question about Authorization Manager
- From: John
- 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
- Re: Question about Authorization Manager
- From: John Parrish
- Re: Question about Authorization Manager
- From: Nicole Calinoiu
- Re: Question about Authorization Manager
- From: John
- Re: Question about Authorization Manager
- From: Nicole Calinoiu
- Re: Question about Authorization Manager
- From: John Parrish
- Question about Authorization Manager
- Prev by Date: Re: Question about Authorization Manager
- Next by Date: Re: CAS,Stackwalk and code reuse
- Previous by thread: Re: Question about Authorization Manager
- Next by thread: Re: Question about Authorization Manager
- Index(es):
Relevant Pages
|