Video will not play

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.
10/22/2013 11:16:25 AM
Gravatar
Total Posts 18439

Re: Video will not play

Hi Ken,

That should work, it slipped my mind that there is a simple web.config way to protect a folder by site roles, I'm pretty sure that all that tool does is make the web.cofig files and settings for you.

Best,

Joe

10/22/2013 12:27:30 PM
Gravatar
Total Posts 77

Re: Video will not play

Hi Joe,

Oops - I did not intend to imply that the WSAT tool is a good solution for my needs.
I mentioned the WSAT just as a way to refer to the structure of a possible solution.

It's true that for a small site with just a few users (<50) and a few (<10) roles and not many changes then the WSAT tool is probably OK. Also, I think that you are right in that that all that WSAT does is to provide an easy-to-use interface for managing parts of the web.config.

However, what I'm going to need is a permissions user interface that has similar capabilities to the tool that I'm using on my own site which has a permissions user interface that looks like this: http://sdrv.ms/16t8FMq

So what must be done to create a user interface that has similar functions to that?
(Note that forums, blogs & everything else on my existing site have a similar level of granular access control.)

And apologies for causing a bit of thread drift here. Maybe you should move this to a new "Permissions control" thread?

Thanks

Ken   

10/22/2013 12:45:32 PM
Gravatar
Total Posts 18439

Re: Video will not play

Hi Ken,

Looking at your screen shot there is nothing in mojoPortal and nothing currently planned to control access to static files to that degree.

You can protect the static files in a given folder by adding a web.config file in the folder and configuring authorization rules. ie you could ahve a folder at /Data/Sites/1/media/premvideos

​and you could put a web.config file in that folder something like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
   <system.webServer>
      <security>
         <authorization>
            <remove users="*" roles="" verbs="" />
            <add accessType="Allow" users="" roles="premiumrole" />
         </authorization>
      </security>
   </system.webServer>
</configuration>

where premiumrole is a custom role in mojoPortal. So you could secure the video page in mojoPortal with that role and you could tell IIS to protect the folder containing the video files using a custom Web.config file in that folder.

Note that it is IIS not mojoPortal that protects the files.

I "think" WSAT tool just provides a UI that creates/edits those Web.config files and settings.

One could build their own UI that could also do that but it isn't something I plan to do, so with mojoPortal you would either have to create and manage those files and settings manually or use an external tool if there is one that does it.

10/22/2013 2:07:19 PM
Gravatar
Total Posts 77

Re: Video will not play

Hi Joe,

OK, I'll try to make a simple prototype.

I really appreciate your comments on this which I why I have just bought you four beers.

Don't drink them all at once! laugh

Ken

10/22/2013 2:10:18 PM
Gravatar
Total Posts 18439

Re: Video will not play

Many thanks for the beers! Much appreciated.

Cheers,

Joe

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