I'm about to create a (dashboard) datatype for Umbraco which basically shows a CRUD table/grid with paging enabled. The data is from a custom database table and I'm considering going the REST way of creating this datatype using the AngularJS ng-table plugin.
Creating such a datatype shouldn't be too big of a problem and I could go with Umbraco /base for the data handling. However, the data is quite sensitive (emails, names etc), so I don't want to expose the REST methods to everyone by i.e. /base/myBase/GetData.aspx.
What exactly is the common approach to create a (restful) datatype in Umbraco which should display and handle sensitive data?
I know I could go for the regular ASP.NET GridView, but... just no ;-) It's quite a drag working with that component, imo.
You can use User.GetCurrent() even in /base extensions, so /base/myBase/GetData.aspx could display an error message if the user isn't logged in. You could also return some basic data for normal users in Umbraco and only return sensitive information like emails for adminstrators.
Creating a custom REST datatype
Hi all,
I'm about to create a (dashboard) datatype for Umbraco which basically shows a CRUD table/grid with paging enabled. The data is from a custom database table and I'm considering going the REST way of creating this datatype using the AngularJS ng-table plugin.
Creating such a datatype shouldn't be too big of a problem and I could go with Umbraco /base for the data handling. However, the data is quite sensitive (emails, names etc), so I don't want to expose the REST methods to everyone by i.e. /base/myBase/GetData.aspx.
What exactly is the common approach to create a (restful) datatype in Umbraco which should display and handle sensitive data?
I know I could go for the regular ASP.NET GridView, but... just no ;-) It's quite a drag working with that component, imo.
Any suggestion on this is greatly appreciated!
All the best,
Bo
You can use User.GetCurrent() even in /base extensions, so /base/myBase/GetData.aspx could display an error message if the user isn't logged in. You could also return some basic data for normal users in Umbraco and only return sensitive information like emails for adminstrators.
Thanks a lot Anders, why didn't I think of that :-) Thanks a lot!
is working on a reply...