This is a migrated thread and some comments may be shown as answers.

Hide Templates from unauthorized users

3 Answers 70 Views
SPA
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 2
Bilal asked on 04 Nov 2014, 04:02 PM
Hi,

I am developing an application where based on the user role, he/she can view a set of Templates. So in case, of normal user, he/she should view X templates, while Admin can view X and Y Templates.

Is using local templates, anyone regardless of his/her role, could "View Source" and see the Templates used by Admin.

Is there a work around? 

Thanks

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 06 Nov 2014, 11:53 AM
Hi Bilal,

you may consider fetching the templates from the server with some sort of an authorization mechanism. However, this would defeat the purpose (and the responsiveness) of the SPA implementation. If you think that your app code may contain sensitive data of some sort, my advice would be to pick a server-side architecture instead. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bilal
Top achievements
Rank 2
answered on 07 Nov 2014, 07:35 AM
How do you usually develop SPA when there is such a requirement (allow users to access Template X and other users Template Y)?

In my case, I can load all templates from beginning, but I can limit which data to load based on the role, sounds good?

Best regards
Bilal Haidar
0
Petyo
Telerik team
answered on 11 Nov 2014, 08:23 AM
Hello Bilal,

The SPA architecture concept is not unique to the Kendo UI product offering, so I am not sure if our support service can provide an expert opinion on the subject. I think that you may get more informed opinions on the topic in the general programming community sites like stack overflow or Quora, for example. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
SPA
Asked by
Bilal
Top achievements
Rank 2
Answers by
Petyo
Telerik team
Bilal
Top achievements
Rank 2
Share this question
or