Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Need authorization for link(downloadable file) View modes: 
User avatar
Member
Member
ram-effindi - 7/24/2012 12:12:00 AM
   
Need authorization for link(downloadable file)
Hi,

i have some public file and restricted files, Initially i have to show all file links to all the users( restricted and public files). But when they click on the link to download files at that time i need to verify the person is authorized for download the files or not if yes then he can download otherwise it should restrict the person and ask them to get authorization.
can you please suggest or solution for how can i achiev this and what are the files i need to work.


Thanks,
Ram.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/24/2012 1:46:17 AM
   
RE:Need authorization for link(downloadable file)
Hi,

Have you tried to set the files as "secured site area" and require authentication to access the file?

Best regards,
Juraj Ondrus

User avatar
Member
Member
ram-effindi - 7/24/2012 1:59:44 AM
   
RE:Need authorization for link(downloadable file)
Hi,

In my case i have to allow the public users to view the page and document links, In the list of the document links some of the document links are restricted one when the user click on the restricted link at that time only i need to check the person is authorized one or not, for the other links they can download the files.


Thanks,
Ram.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/24/2012 6:01:59 AM
   
RE:Need authorization for link(downloadable file)
Hi,

That is exactly what I meant - you won't setup any permissions to the document - so the link to it will be visible and once user will click on, the user will be asked to authenticate. Have you tried that setting?

Best regards,
Juraj Ondrus

User avatar
Member
Member
ram-effindi - 7/25/2012 12:58:38 AM
   
RE:Need authorization for link(downloadable file)
Hi,

I tried its restricting the whole page and asking user credentials,

But my problem is

Example:

Treat this as content of the page

Description: some Description

Features: some features

Documents:

*Document file 1(restricted)
*Document file 2(public)
*Document file 3(public)
*Document file 4(Restricted
*Document file 5(public)



Here is my issue
1. I am listing those 5 documents file from the Document library
2. Form those document file list some of the files are restricted and some of them or public, so here how can i restrict

Are you able to understand my issue?

Thanks,
Ram.



User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/25/2012 1:43:48 AM
   
RE:Need authorization for link(downloadable file)
Hi,

I understand your issue pretty good and I am also telling you the solution to it - just set "REQUIRES AUTHENTICATION" to the particular files which are listed in the document library.

Also, please read the documentation I mentioned before - to know whether to check or uncheck the "check permissions" for the document library web part.

What I suggested you in the very first message is working exactly as you described - have you even tried it?

Best regards,
Juraj Ondrus

User avatar
Member
Member
ram-effindi - 7/25/2012 2:05:51 AM
   
RE:Need authorization for link(downloadable file)
Hi,

Sorry i wrongly entered in my previous post, i little confused between document library and media library,

Yes i tried media library is working.

But Actually all my files are in the media library, since each file is associated with multiple products, we have it in media library, is it possible do permissions in media library files?


Thanks,
Ram.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/27/2012 3:22:25 AM
   
RE:Need authorization for link(downloadable file)
Hi,

Using media library this is not possible via Kentico, since it is a physical file - you can setup a security on the IIS level and secure the folder.

Or, add some flag to the media file in the CMS and then, displaying the links to those files have a custom logic which will check the flag anf fire the authentication when required.

Best regards,
Juraj Ondrus

User avatar
Member
Member
ram-effindi - 7/27/2012 5:19:03 AM
   
RE:Need authorization for link(downloadable file)
Hi,

I will try as u suggest Thanks for your reply

Regards,
Ram.