tags:

views:

24

answers:

1

I need to check if an authenticated user is authorized to access a directory.

I have done this before with a base class library method, I just cannot remember what class it's part of or what it's name was. I think the method was a static method and the class may have had the word Utility in it's name, but I just can't remember or find it on the net. BUT I KNOW I HAVE USED IT! The method definition was something like:

bool SomeTypeWithTheWordUtilityInTheNamePossibly.VerifyUserIsAuthorized(Principal user, string virtualPath)

I'm not using a roles provider in this application and I'm not planning to.

+1  A: 

FOUND IT! Thanks to this.

UrlAuthorizationModule.CheckUrlAccessForPrincipal

Ronnie Overby