Questions tagged [roleprovider]

Built-in and custom implementations of ASP.NET's Role Provider, as part of Membership functionality in the System.Web.Security namespace.

ASP.NET supports user authentication and authorization through a provider-based model. In support of the authorization providers, there is a Role Provider which supports filtered access to resources by checks against pre-assigned roles.

MSDN Documentation

Managing Authorization Using Roles

Understanding Role Management

Role Management Providers

ASP.NET Security

Questions for this Tag

Questions that should have this tag pertain to use of the default ASP.NET Role Providers (AspNetSqlRoleProvider & AspNetWindowsTokenRoleProvider), as well as questions about extending/overriding the built-in provider.

386 questions
0
votes
1 answer

How do I setup access to the SQL Server Membership and Role Providers from a Class Library?

I have a client that wants to wrap the provider model with a middleware library, thereby keeping all Security.Web namespaces and API calls out of the front end completely. Setting up calls into the API is easy. But configuring an app.config file is…
0
votes
2 answers

custom role provider not working on IIS but work fine in VS development server

After deep googling I'm not found any solution or ways to troubleshoot my problem, so ask here. In first part of web.config ......
sage444
  • 5,661
  • 4
  • 33
  • 60
0
votes
1 answer

Custom Membership, MVC and WCF. Where to implement it?

I have a complicated question, at least for me :), and it's more architecture than coding, i would say. Ok, I am creating a MVC website. I have a wcf service and that's my only way of communication with my database, business objects, etc. Website…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
0
votes
2 answers

Sitemap security trimming using roles attributes only, and not allow/deny rules elsewhere

I am aware that the tag has the "roles" attribute to make up for the nodes that don't have the "url" attribute, which can be resolved in other ways. I'm not interested in these other ways, though, I'd like to have all my permissions set in my…
Liz Av
  • 2,864
  • 1
  • 25
  • 35
0
votes
1 answer

Is it possible to use Outlook Email Groups as Roles in MVC for Asp.NET?

I need to set up this MVC application to use Windows Authentication and Outlook Email Groups to assign Roles to users and then I can authorize the users who are in those Roles to be able to do specific actions in the controller. I've googled around…
egucciar
  • 2,039
  • 6
  • 23
  • 24
0
votes
1 answer

Pre-Existing Code or Template for Intranet User Provisioning (i.e. role assignment) in MVC3

When you create a new MVC project in Visual Studio, you get an AccountController that supports user self-registration and self-help changing passwords. This is great as a basic first step for a public internet site. But for an intranet site where…
0
votes
2 answers

How to use both windows and forms auth with a single custom role provider

I have a custom role provider, built on a Role entity, and a many to many relationship called RoleUser, between my forms auth User entities and the Roles. I would like to switch this roles provider into using Windows auth as well now. It seems…
ProfK
  • 49,207
  • 121
  • 399
  • 775
-1
votes
1 answer

Adding roles dynamically to the asp.net role provider

I'm using the Asp.Net Role Provider that contains some roles. I would like to add some other roles that are coming from another database. Is there a way to do some kind of "union" between roles coming from the role provider and roles coming from my…
user957479
  • 491
  • 1
  • 5
  • 20
-1
votes
1 answer

How to Role-Provider Implementation into LINQ?

I want convert following sample Role-Provider Implementation to LINQ. How to: Sample Role-Provider Implementation I want uses the ADO.NET Entity Data Model(Entity Framework 6).
Samiey Mehdi
  • 9,184
  • 18
  • 49
  • 63
-3
votes
3 answers

What's the benefits of Custom Membership in .Net?

i'm building a custom membership in .net and i don't understand real benefits of them, what the benefits? Here is my class that inherits from MembershipProvider: public class MembershipService : MembershipProvider { public override bool…
-4
votes
1 answer

confused over mvc ApplicationRoleManager

I need to create some roles to assign to users in my experiment asp.net mvc page. The roles would be static and pretty basic such as "canViewPageA" or "canCreateNews" and would be used by the view files and the layout to either display or not…
Jake Freelander
  • 1,471
  • 1
  • 19
  • 26
1 2 3
25
26