Questions tagged [security-roles]

127 questions
2
votes
2 answers

Custom CodeAccessSecurityAttribute That Takes Many Roles

I'm working on some Role-based security for our app and I essentially want to do customized verison MVC's AuthorizeAttribute - but only at the business logic layer, where we don't link to MVC. I've looked at PrincipalPermissionAttribute but it…
2
votes
3 answers

Using :attr_accessible with role-based authorization

In my online store, users are allowed to change certain properties of their orders (e.g., their billing address), but not others (e.g., the origination ip address). Administrators, on the other hand, are allowed to modify all order…
Tom Lehman
  • 85,973
  • 71
  • 200
  • 272
2
votes
2 answers

How do I list the requesting user's roles in a WCF service?

Just started getting to grips with WCF security. How do I list a user's roles at the service? E.g. // Could use declarative security here, i.e. using PrincipalPermission attribute public string MyService() { // Would like some code that does…
ng5000
  • 12,330
  • 10
  • 51
  • 64
2
votes
2 answers

Oracle dbms.set_role does not work in APEX application

in our j2ee applications, we use secure application role. Basically, the data source use the app user schema to connect to the database. the app user only has create session privileges. the database logon trigger will copy a set of attribute to the…
sse
  • 1,151
  • 2
  • 14
  • 26
2
votes
2 answers

windows forms security c#

I am developing a Windows Forms application in C#. I have created user authentication within this application, and I have to restrict access to different functionalities to users depending on their permissions. Is there a framework that can help me…
Müsli
  • 1,744
  • 7
  • 27
  • 50
2
votes
1 answer

Restrict user access from "main area" Dynamics 365 on prem

We've created a new "App" which is the first app so far in our solution. The idea is that a group of users will have access to this app only and they will no longer have access to the "main area" of the application. Some of the forms for certain…
2
votes
1 answer

Query on a database different from the one working on with XQuery

Currently I'm working on an application that is making queries on a given MarkLogic database, the default one as we can say, but to provide same values on the screen I have to check the role of the logged user before displaying. This can be done…
2
votes
0 answers

How to load intercept-url dynamically from Database in Spring Security 4.1.3?

I am developing a spring project. In my security-context file I am using the intercept-url tag to manage the access roles:
2
votes
2 answers

Creating a security role to be able to only create roles and users without having system admin role

CRM 2015: I want to be able to create a role for local IT to be able to add user accounts and assign roles. Regarding the 'adding roles' portion, is it simple enough just to create a role for local IT to 'write' to 'security' roles in the'business…
J.S. Orris
  • 4,653
  • 12
  • 49
  • 89
2
votes
2 answers

Why is there no built-in "stored procedure executor" database role?

I've always wondered why the list of database roles (db_datareader, db_datawriter, db_ddladmin, etc) never included a db_storedprocedureexecutor. The others make sense, but it seems like being able to grant the ability to execute all stored procs to…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
2
votes
1 answer

How do I grant email merge with templates to Dynamics CRM security role?

I need to configure the security role. I am an administrator on the system. First, the user must be able to search for contacts in the extended search. According to selected contacts, he will launch a quick campaign. Prior to this, the user creates…
2
votes
2 answers

Weblogic 12 - Changing Scoped Role to Group mapping in the deployed application

Our current application uses JSF/JPA technology and is deployed on Weblogic 12.1.2 and does the following: Authenticates a user through an IDP The IDP after authenticating the user sends back the Groups the user belong to Using Web.xml and…
kali
  • 49
  • 5
2
votes
2 answers

How to create a role programmatically in Drupal 8?

How do I create a role programmatically in Drupal 8? What am I doing wrong here? $role = \Drupal\user\Entity\Role::create(['id' => 'client', 'name' => 'Client']); $role->save();
Jake Lacey
  • 623
  • 7
  • 24
2
votes
1 answer

RolesAllowed non constant value

I'm using@RolesAllowed. It seems to only work with a constant value. But does a solution exist to use a non constant role in @RolesAllowed in Java EE? Thanks
user3945399
2
votes
3 answers

Bluemix security roles

I just started learning about Bluemix and am slightly confused. I am currently building a form-based login authentication with JSF which will be used in a web application that works on Bluemix. How will I change security related settings in…
1 2
3
8 9