Questions tagged [security-roles]
127 questions
4
votes
2 answers
Retrieve Keycloak Roles in reactive Spring Gateway security
I migrate from Zuul Gateway to Spring Gateway. This forced me to abandon Servlets for Webflux. I use KeyCloak and KeyCloak roles for authentication and authorization.
There is no official reactive KeyCloak implementation, so I use Spring OAuth2…

user14344662
- 51
- 3
4
votes
5 answers
How do I access JAAS roles at arbitrary point in the code?
I want to access the full model of users with their roles in my SOAP app. For example, I might want to know the role of a user called "Fred."
How do I reach into some sort of global JAAS registry and do (pseudocode) …

Joshua Fox
- 18,704
- 23
- 87
- 147
4
votes
2 answers
Spring Security Role Prefix and Custom User Details Service
How do I set the role prefix to "" with a custom user details service in Spring?

Mike Flynn
- 22,342
- 54
- 182
- 341
4
votes
2 answers
Role Based Access Control (RBAC) cares about permission or roles?
After reading http://en.wikipedia.org/wiki/Role-based_access_control and seeing the way people are building authorization/access control, this question came to my mind "Why we are checking roles of users when checking if they are permitted to do X…

Peyman
- 3,059
- 1
- 33
- 68
4
votes
1 answer
Enabling role based security in Websphere7
My web application(created using struts2 ,Contains 2 page
1)Raise Request
2)Approve Request
) deployed in websphere 7.I need to enable role based security for this application. I have two Roles
1)user(who can raise a request)
2)Approver
both…

Mohan
- 3,893
- 9
- 33
- 42
3
votes
3 answers
mvc site, most secure way to preserve login credentials
ok so, i have this dilemma on how i should save login credentials in mvc at the same time avoid as much hit on the database. i know i can easily use Forms Authentication to save a User instance but is it advisable?
At the moment the way I do it is I…

gdubs
- 2,724
- 9
- 55
- 102
3
votes
3 answers
What is the best practice for role security for an Intratnet ASP.NET/SQL2K5 environment?
Our current Intranet environment is a little outdated. The current stack has ASP.NET 1.1/2.0 applications that are querying against a SQL 2000 database.
For role security, there are user groups on the servers that users are added into (so you need…

Dillie-O
- 29,277
- 14
- 101
- 140
3
votes
2 answers
defining userroles with inheriting rights
I'm currently looking into the spring-security framework - great stuff so far, pretty impressed.
However, I haven't found out where or how to define a inheritance of permissions.
e.g. I want the ROLE_ADMIN to have at least the same rights as the…

chzbrgla
- 5,158
- 7
- 39
- 56
3
votes
3 answers
role based access to methods
I'm implementing system which uses role based access to different methods in classes. For example to perform any action I need to check whether user which uses it can do it.
I can write in each method:
if(User.IsInRole ...) {
} else {
return ...…

gruber
- 28,739
- 35
- 124
- 216
3
votes
2 answers
Manage User and Roles
In my WPF Desktop sample Book Store application I want to manage Users and Roles. With multiple Users I want to achieve below points
1) Application Should have multiple user
2) User has 3 categories a) Admin b) Manager c) Employee
3) Application…

Cloud Spider
- 195
- 8
3
votes
3 answers
WindowsPrincipal.IsInRole() not returning the expected result
So here's my current code:
List rowGroups = GetFileGroups((int)row.Cells["document_security_type"].Value);
bool found = false;
System.Security.Principal.WindowsPrincipal p = new…

Miles
- 5,646
- 18
- 62
- 86
3
votes
1 answer
User permission - triggering code on user role (Wordpress)
I'm developing a custom plugin in PHP so existing plugins are not usable. What I want to achieve is that I want to display different url within a post for some users . For users that are registered in wordpress, contacted me and are 'approved'. I…

Radek
- 13,813
- 52
- 161
- 255
3
votes
1 answer
(Null) Values in SSAS cube when selecting a role
I have the following problem:
When I process a cube in SSAS and view the data as a normal user without restrictions all is well and the aggregated results show their normal values.
When I choose inside Data Tools (MsSQL 2012) to view the data as a…

Athanasios Kataras
- 25,191
- 4
- 32
- 61
3
votes
1 answer
How to get spring security role hierarchy in jsp to work?
I try to get role hierarchies to work in my application. The only thing I want is the defined hierarchy at all levels: At the url-level and for now also at the view level (in my jsp files).
I use the following setup:

conscience
- 463
- 6
- 21
3
votes
2 answers
Hiding a link in the sitemap based on security role in crm 2011 using javascript
Is there any way to hide a link in the SiteMap in CRM 2011 using javascript? The link is not that of an entity. It's basically an injected link which opens up a custom HTML page in the dashboard. Is there any way I can probably wire up a javascript…

Anupam
- 1,821
- 3
- 23
- 41