roles

making users and giving authorities to them asp.net

Hi everybody, suppose super administrator wants to create users with their authorities, how can i do this. I am not using asp.net membership at all. Suppose i am creating user abc with ReadOrderPermission.How to do that. Thanks in advance. Any help will be appreciated. ...

Associations among users in ASP.NET Membership

I want to create associations between users in my application. For instance there is a Program Director (Role:PD) which has many Residents (Role:Resident), similarly there is an APD (Role: Asistant Program Director) to each PD. To each PD I want to show him only those Residents which belong to him i.e I want to filter the Residents by t...

Activating custom sharepoint feature on forms authenticated web app

Hey guys. So I created a custom feature with a receiver. Everything works fine and dandy - under a windows authenticated sharepoint application. The same web application has been extended to include a forms based authenticated site. Activating the feature on this site gives me a 403 forbidden error. Can anyone help me out here? It's ...

Best way to implement multiple roles and permissions in c# web app?

Hi I want to implement roles and permissions on a web app we have created and I am looking at using System.Web.Security.SqlRoleProvider to implement this. My problem is that each client will want to be able to configure who can and cannot perform actions in the system and no two clients will want the same, so creating basic Admin, User...

How do I programmatically list which ASP.Net Role can access a page?

Is there a way of listing which roles have access to a given page via code? Example, I have a Testpage.aspx, and I wanted to list the roles allowed for this page when a user accesses the page. The URLAuthorizationManager must be able to find this out somehow, so there must be a way it knows what roles are configured in the webconfig for...

SQL 2005 database roles and security

I Hope someone can clarify and help. I've moved to creating/using schemas in Sql Server 2005, where I've also created database roles and assigned schemas to the roles. The problem I have is one of the db roles I have should have full access - say SuperSysRole. However, when I assign a login to that role, it cannot execute specific comma...

How to handle optional login in rails

I'm building a rails app where login is optional. In other words, many of the same actions/views/controllers/pages will work logged in or logged out. You simply get more functionality if you are logged in (like the app remembers what you've done). I'm currently using restful_authentication and role_requirement, and wondering which level...

Grant SELECT, UPDATE, INSERT, DELETE to all tables except 1 (or more) in SQL Server 2005

The user I have should have access to all tables in a database - SELECT, INSERT, UPDATE, DELETE and EXECUTE (ASP code to blame :-P) except for 1 table e.g. users. When granting db_datareader and db_datawriter this gives them full access to everything and removing the DELETE permission on the users table will not work. There are over 60...

Is it possible to use RoleManager features through a sharepoint custom timer job?

Hi... I've developed a custom timer job using the SPJobDefinition class. The idea is to extend the existing Alert Me notifications, by allowing to send notifications to the members of a Role using the asp.net role provider framework. After a lot of trial and error, I'm beginning to think it might not even be possible to use the RoleMan...

Not seeing roles on Principal in ASP.NET MVC 2 Application

I am writing an ASP.NET MVC 2 application and don't want to use ASP.NET Membership. I do want to use the Authorize attribute on the Controllers. What I have done so far is ... Web.config <roleManager enabled="true" /> <authentication mode="Forms"> <forms loginUrl="~/Authentication/Login" timeout="2880"/> </authentication> <authoriza...

ASP.Net MVC 2 custom membership user role assignments are caching

Hello. I'm new to implementing custom membership/roles for ASP.Net MVC 2. I have membership/roles working in that a user can login successfully and can retrieve their role assignments. However, if I change their role assignments in the underlying database, those changes are not propagating through to the app. I removed all role assig...

Get all Roles, But a select few Help

Hello, I have run into a problem where I need to remove certain items from collections that seem to only have get all functions. My Idea is to get the full collection and then remove the unneeded items. Then take that new collection and bind it to whatever I need. For example How do I get all the roles except administrator? Roles s...

How to handle role-based views in MVC?

Regardless of the language or MVC framework used, how should I handle different views based on roles? For example (pseudo code): views/post/show: <% show post here %> if (role.isAdmin or role.isModerator) { <% show moderation tools %> } <% show rest of content %> I don't quite like the idea of putting too much business logic into...

SQL Server and Oracle read / write roles

Hi, I need to create some roles (I don't know how to call it correctly, so I'll name it 'role :)) on SQL Server and Oracle, and I really don't know much about both DB servers, so I don't know what I should look for. I need to create 2 roles: users who can only filter data from tables (SELECT). users who can modify data (i.e. DELETE st...

Limiting Access to "Functional Modules" in ASP.NET MVC

I am building a site in ASP.NET 4 and MVC2 that will have premium features, such as SMS notifications that will only be available to paid subscribers. I also have additional modules for things like Inventory, and Transactions etc I am already leveraging the standard MembershipProvider, and am leaning towards using Roles tp provide this ...

Help with refactoring Views and Master Pages in asp.net mvc 2

Im trying to refactor an asp.net mvc that is one big mess of code... it really is astonishing. I wouldnt know where to start to fix this monster... Anyways. Please Give me advice... Anything. There are different roles.. and each different role sees a somewhat different page layout. these roles are: medic, patient, company, admin They...

A Moose role of roles

I'd like to set up a convenience Moose role made up of other smaller roles. For example, if I have WithAddress and WithPhone I would like a single WithContacts that provides both WithAddress and WithPhone and anything contact methods I add in the future. How can I do this with Moose? ...

entity framework get data list by role

Hi. I got: public interface IRepository<TE, TK> where TE : class, IEntityId<TK>, new() where TK : struct { IQueryable<TE> Query(); void Create(TE entity); void Update(TE entity); void Delete(TE entity); } The Query method should return a data list via Entity Framework 4 ORM. Use case: I need all august orders...

Are users commonly implemented as Roles with the ability to login?

In recent versions of PostgreSQL users are implemented as roles that can login. Is this common in an RBAC implementations, that a user is just another role with the ability to login (or similar)? Some of what I've read so far doesn't suggest that... but maybe I've misread or just not read the right thing. ...

SQL Server - Give a Login Permission for Read Access to All Existing and Future Databases

I have a stored procedure that finds all the existing databases and reads from a table in each one. Is there a way I can give a login read access to all databases, and to all future databases i.e., I won't have to do anything when a new database is added? Is there a server role that would work? Is there a way to make a SQL agent job ...