Questions tagged [role-based]

58 questions
1
vote
1 answer

How to impersonate a Windows built-in Administrator role for a WinForms, C# App?

It seems like the elevation of privileges is a common thing most developers fight with as most of the time they simply do not have it. I for one do but am fighting with a massive Background Worker routine and I'm trying to keep my code local to the…
IbrarMumtaz
  • 4,235
  • 7
  • 44
  • 63
1
vote
4 answers

Role based authorization

I am trying to use Role based authorization in declarative way, when unauthorized user attempt to access a page, it never fire an exception or show the user an error message. What I should do to show unauthorized message? is that possible in…
Costa
  • 3,897
  • 13
  • 48
  • 81
1
vote
1 answer

Suggest me best role based authentication/authorization method in asp.net that can work control level

I am in need of best method to achieve role based authentication/authorization. The requirements are It should check accessibility page level, based on role It should be able to handle visibility of controls of page based on role And that all can…
Vipul Limbachiya
  • 131
  • 2
  • 10
1
vote
1 answer

How to disable Caching for certain roles in ASP.Net MVC?

I want to enable caching for all Anonymous users of my site. But for logged in users of certain roles, I want to disable caching. I am using .net4/ASP.Net MVC2. How do I achive this?
ravi
  • 949
  • 11
  • 22
1
vote
1 answer

SQL Server (2005) target tables in different schemas from store procedure

Please can any one advise if it is possible to have a stored procedure in the [dbo] schema select data from one table in one schema for users accessing via one database role and for it to select data from a like-named table in another schema for…
Dib
  • 2,001
  • 2
  • 29
  • 45
1
vote
1 answer

How to visually separate security-trimmed action links in ASP.NET MVC

I am experimenting with security-trimmed action links in ASP.NET MVC, and am considering using the SecurityTrimmedActionLink helper method described here (with some modifications). using System; using System.Collections.Generic; using…
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
1
vote
0 answers

show/hide groups of controls based on role, ASP/jquery

I've seen folks with similar questions, and there's a very good answer that has to do with building a control adapter. But my situation is a little different: I have an ASP/VB.NET 2010 site with about 2 dozen pages. Those pages contain up to 40…
Brian Link
  • 105
  • 2
  • 9
1
vote
1 answer

Roles and Permissions model in database

I have a user model and lots of other models in my project, to create a RBAC system I implemented role and permission. User has_and_belongs_to_many roles and Role has_and_belongs_to_many permissions. class Permission include Mongoid::Document …
1
vote
2 answers

Generating Navigation for different user types, MVC, PHP

I have this idea of generating an array of user-links that will depend on user-roles. The user can be a student or an admin. What I have in mind is use a foreach loop to generate a list of links that is only available for certain users. My problem…
Joey Hipolito
  • 3,108
  • 11
  • 44
  • 83
0
votes
3 answers

Scalable role based authentication

I am currently designing a role based authentication system for resources where many users have different access rights to it. A role may be a single user, or a group of roles (so a role is a tree of roles). (see graphic below) A resource can have…
Fionn
  • 10,975
  • 11
  • 54
  • 84
0
votes
1 answer

I implemeneted authenticate method in wcf and want to know, How security context gets automatically loaded before each request to wcf service?

I am new to authentication and authorization concepts. I wrote an authenticate method in my wcf servcice. Methods in wcf service will get called only by authenticated users with specific roles. How does the security context automatically get loaded…
0
votes
0 answers

same route on role-based on nextjs

I am creating a app on nextjs . my folder structure is this . the problem i am facing and as i am new to this nextjs . there is button in header category. when logged in i will get role on my response. when logged in as user it should show…
kriti
  • 1
  • 2
0
votes
1 answer

How can we use the Role-Based security in a dynamic environment?

We always have problems to using role-based in large systems. In such softwares we want superusers to able to set their organization users permissions. We can create many atomic roles and create a console for assigning the roles to the users. Then…
Amir Karimi
  • 5,401
  • 4
  • 32
  • 51
0
votes
0 answers

Role Based control access .net

I need to develop a role based control access system in my application In my case I have aspx page XML file Custom role provider each control in the aspx page should have an extra behavior to be enable or not depend on the user role so when the…
AshOoO
  • 1,108
  • 3
  • 13
  • 34
0
votes
2 answers

How can i build Role based permissions access in multi client application in django?

I am currently making an architecture for my multi-client application, in which How to implement role based access model. Every client will make customize-roles and will give permissions to that role. Finally that role will be assigned to the…