IIS7 .Net Authorization Rules & mojoRoleProvider

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
4/9/2010 10:38:44 AM
Gravatar
Total Posts 13

IIS7 .Net Authorization Rules & mojoRoleProvider

I'm trying to configure certain IIS Folders with binary file downloads to be restricted to role memeberships configured in MojoPortal.  (In IIS 7, .Net Roles can restrict access of ANY file, not just asp.net managed content.)

I installed the URL Athorization Service in IIS and I can set the authorization rules on various directories and I do get rights restrictions when I try to browse.

The problem is that even if I am logged in properly, access is still denied - IIS does not seem to be aware of the mojoPortal roles.

In IIS, it seems that though the mojoPortal is configured in IIS as a role provider, it isn't a TRUSTED role provider, so you can't view the roles through the console by default.  I don't think that mojoRoleProvider's assembly is strongly-named, so it cannot be configured as trusted.

To test, I turned allowUntrustedProviders="true" in the Administration.config, but still, the roles are not available in IIS for use in Authorization Rules.

Anyone done this kind of thing before?

I'm doing this because, as far as I know, the File Manager does not support access restrictions.

Thanks!

4/10/2010 1:29:09 PM
Gravatar
Total Posts 18439

Re: IIS7 .Net Authorization Rules & mojoRoleProvider

See answer in the developer forum thread here.

You must sign in to post in the forums. This thread is closed to new posts.