is there a way i can get the role in a string variable using the below commands....
System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent();
System.Security.Principal.WindowsPrincipal wp = new System.Security.Principal.WindowsPrincipal(wi);
i need this for
FormsAuthenticationTicket au...
I have a Role and several classes that mix-in the role. The Role class loads all of the implementing classes so that anything that imports Blah can use them without typing a lot of 'use' lines.
package Blah;
use Moose::Role;
use Blah::A;
use Blah::B;
(etc...)
requires '...';
requires 'foo';
around 'foo' => sub { ... }
A typical Blah...
How do I give a specific user editing rights to a specific node?
I have a user role named "Student". Multiple users have that role, only a few of them can edit a node. How can I realise this?
...
hi,
i am using asp.net with c# .I have 5 roles such as manager,super user, team leader etc .Depending on the role the user sees the data as restricted to him ,only super user can manipulate that data etc.I am using forms authentication.Can anyone provide the code or any form of help is appriciated.
Please help
...
Here is the scenario..
===== scanario 1 =====
1. Document Library "Gatorate Classic"
2. I have four groups.
Group Alpha - Role - Read
Group Beta - Role - Edit
Group Epselon - Role - Edit
Group Gamma - Role - Edit
===== scanario 2 =====
1. Document Library "Gatorate G2"
2. I have four groups.
Group Alpha - Role - Edit
...
Hi All
There is Role Management feature in ASP.NET
It works on local development machine.
For our project we need customers admin to be able to create new users and manage their roles.
So, basically same what aspnet_regsql.exe does.
Question is
Should we develop our own pages and forms or use some ready made tool?
Thanks!
...
I have a 3 tier application that requires security authorizations be placed on various domain objects.
Whether I use Spring's ACL implementation or roll my own, it seems to me that ACL based security can only be used to authorize (service) methods and cannot be used to authorize URL or web service invocations. I think this because ho...
Is it possible to grant the datareader privileges to a SQL Server Database Role rather than a User?
...
I have an Action result
[Authorize(Roles = "Administrator,Paidmember")]
public ActionResult ListPhotosbyModel(int? id)
{
}
If the user once he is logged in is not in one of the roles he redirected to login screen but I want them redirected to a payment page where upon successful completion the user is added to paidmember.
How do I...
I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin).
I want to generate a script that creates those same users with the same role assignments to use in a different database. SQL Management Studio seems to only generate sp_addrolemember calls for user-defined roles, not ...
Hi,
I have installed the following:
.Net Framework 3.5, windows installer 3.1, IIS 7.0, ASP .NET, Microsoft DynamicsAX .NET business connector, AMO, AOS and Microsoft office share point server 2007
when trying to install Enterprise Portal and Role Center on office Sharepoint server I got a warning when the installation finished.
W...
For my existing data, both RoleName and LoweredRoleName are same, but some are lower case and some are in same case too.
Anyone knows what is the use of column LoweredRoleName in aspnet_users table?
...
I am currently working on a project which has Employee, Manager entities. At the very beginning, I took for granted that a manager must be an employee in the company, so they are the same person who have the same EmployeeID in payroll system. Based on this assumption, I let the Manager class extends Employee class.
Later, my client tol...
Hello all,
First off, I'm not really sure how much information is necessary to include because I'm having a really hard time tracing the origin of this problem.
I have a Moose role with a subroutine that (along with a few other things) tries to set the attributes for a class like this:
$genre = Movie::Genre->new({
genreName => 'Dr...
I have admin area of my site: http://www.mysite.com/webadmin and I want to protect it by role (I'm using ASP.NET forms auth), so that only a user with the role "admin" could access it.
In web.config I added this entry:
<location path="WebAdmin">
<system.web>
<authorization>
<deny users="*"/>
<allow r...
Hi there
I've set up a very basic custom role provider from my ASP.net application.
This doesnt seem to be working as the "GetRolesForUser" method is never being called when a page is requested that should be protected.
Class:
public class SimpleRoleProvider : RoleProvider
{
public override string[] GetRolesForUser(string userna...
I've been looking at the use of the role attribute for HTML5/XHTML in the W3C: http://www.w3.org/TR/wai-aria/roles and was wondering if there are any sites that use this or examples of how/when to use the role attribute.
I understand how it works, but would like to see how other people have used in their sites/projects.
Also, am i corr...
I have a Moose::Role that I would like to call some extra subs on the class when that role is applied to the class.
Is there an easy way to modify what happens when the role is applied, without having to dig too much into Moose::Meta::Role type coding? Ideally, I'd just like to after 'apply' => ... to add the extra stuff.
Edit:
I'm s...