security-roles

How do the CloudKit security roles and permissions work?

不问归期 提交于 2019-12-03 11:53:40
There are three default security roles in CloudKit: World Authenticated Creator And three permissions: Create Read Write How do these security roles and permissions work? Here are examples of some of the questions I would hope get answered by an explanation of security roles: What do the three roles mean? The first two seem obvious, but the last one seems less so. E.g. does Creator refer to the creator of the table, or the creator of a record? Where would the deletion permission fall under? Write? Can security roles be applied to individual records? (E.g. I want a user to have access to only a

Spring Security / Java EE solutions for hierarchy tree roles

无人久伴 提交于 2019-12-03 08:56:38
问题 I know Spring Security is good for standard role and permission based authorisation. What I'm not sure is this scenario: There are 10,000 employees managed in the system, employees organised into an org chart (a tree of who reports to who across departments). Some of these employees are users. These users are only permitted to access employees in their line of responsibility (their branch in the tree / a descendant of their employee). So I am wondering how do modern Java EE (or other) systems

Spring Security / Java EE solutions for hierarchy tree roles

点点圈 提交于 2019-12-02 22:57:37
I know Spring Security is good for standard role and permission based authorisation. What I'm not sure is this scenario: There are 10,000 employees managed in the system, employees organised into an org chart (a tree of who reports to who across departments). Some of these employees are users. These users are only permitted to access employees in their line of responsibility (their branch in the tree / a descendant of their employee). So I am wondering how do modern Java EE (or other) systems manage these checks? Can Spring Security (ACL) do this and How can it be modelled? Our old

Preferred database design method for assigning user roles? (Hats vs. Groups)

萝らか妹 提交于 2019-12-02 18:37:31
I have medium sized MySQL database with a primary "persons" table which contains basic contact information about every human being connected to the theatre and theatre school for which I am responsible for maintaining and developing a number of web applications. Some persons are just contacts - that is, their "persons" table record is all the information we need to store about them. Many others though have to be able to assume different roles for a variety of systems. Of these, most start out as students. Some start as employees. People who are students can become interns or performers;

Client Side Template with view per role

南楼画角 提交于 2019-12-01 22:18:55
问题 I've been reading about AngularJS and it seems very promising, the only thing I'm trying to figure out, not specific for framework, but it's general for client-side template. Let's say you have a web application with multiple roles, each role may contain addition feature,,, so you cannot have different template for each role, that would be considered bad practice, so my question is what's the best approach to use client-side template in the mean time, not exposing your template to client, so

Client Side Template with view per role

江枫思渺然 提交于 2019-12-01 19:41:02
I've been reading about AngularJS and it seems very promising, the only thing I'm trying to figure out, not specific for framework, but it's general for client-side template. Let's say you have a web application with multiple roles, each role may contain addition feature,,, so you cannot have different template for each role, that would be considered bad practice, so my question is what's the best approach to use client-side template in the mean time, not exposing your template to client, so for example, in AngularJS I don't have to use ng-show ? What best tool to generate template at server

asp.net MVC role based access to controller

那年仲夏 提交于 2019-12-01 01:34:42
A lot of articles online on role based access speak of applying something like this to ensure role based access to a controller or action [Authorize(Roles = "Admin, Manager")] public class SomeController : Controller { } All this is fine, but now if I need to implement my own custom role based access wherein I have roles in a [RoleMaster] table and the roles assigned to a user from a [User] table in another table called [UserRoles]. In my code I will have a user object in session which will now have a Roles list in it public class RegisteredUsers { //... other user properties public List

asp.net MVC role based access to controller

独自空忆成欢 提交于 2019-11-30 20:07:36
问题 A lot of articles online on role based access speak of applying something like this to ensure role based access to a controller or action [Authorize(Roles = "Admin, Manager")] public class SomeController : Controller { } All this is fine, but now if I need to implement my own custom role based access wherein I have roles in a [RoleMaster] table and the roles assigned to a user from a [User] table in another table called [UserRoles]. In my code I will have a user object in session which will

Determine if user can access the requested page?

天大地大妈咪最大 提交于 2019-11-30 20:06:55
I have an ASP.Net website with multiple roles, each with access to a separate directory (i.e. admin users can access /admin, shoppers can access /shop etc), using a shared login page. If someone visits the login page with the return URL set to a directory they do not have access to (e.g. a shopper visits /login.aspx?returnurl=/admin/index.aspx), the user can authentice successfully (the login credentials are valid), but they end up back at the login page (they don't have access to the page they've requested). How do I pick this up, so I can display a message do the user? UrlAuthorizationModule

AuthorizeAttribute with Roles but not hard-coding the Role values

烂漫一生 提交于 2019-11-30 14:23:39
问题 Is it possible to add the Roles but not hard-coding the values like: [Authorize(Roles="members, admin")] I would like to retrieve these roles from a database or configuration file where I wouldn't need to rebuild the application if I needed to add/remove Roles for a Controller Action. I know with the enums it can be done... http://www.vivienchevallier.com/Articles/create-a-custom-authorizeattribute-that-accepts-parameters-of-type-enum but even this is still not flexible enough for my needs;