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.
...
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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?
...
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...
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.
...
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 ...