Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:12:38+00:00 2026-06-15T23:12:38+00:00

I have a custom role provider, built on a Role entity, and a many

  • 0

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 convenient for me piggy back of the forms Users, and create ‘shadows’ of AD users in my Users entities.

Is this feasible or frowned upon, and are there any good papers etc. on this kind of setup?

I’m using EF Code First against SQL 2005, and am not using a custom membership provider, as my User controller and repository handle all I need quite fine; just a role provider.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:12:40+00:00Added an answer on June 15, 2026 at 11:12 pm

    Notice that we have 5 types of authentication:

    1- Anonymous Authentication

    2- Asp.net Impersonation

    3- Basic Authentication HTTP 401 Challenge

    4- Forms Authentication HTTP 302 Login/Redirect

    5- Windows Authentication HTTP 401 Challenge

    The Philosophy of MVC authentication refers to this fact that, MVC doesn’t use ViewState to authenticate users.It does not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an application.

    According to MVC standards, windows authentication is suitable for intranet applications, and forms authentication for internet application, because of security issues and so more.

    It’s not common to use both windows and forms authentication together. But you can use hybrid of them like this codeproject article. Unless you want to do an action like forms authentication and at the backend store windows account information via your programmability to store to DB or etc. Only make sure there is no challenge among types of authentications.

    There is another important thing, that is diffrences between Authentication and Authorization that you can config them at web.config like bellow:

    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login" timeout="2880" />
    </authentication> 
    <authorization>
        <deny users="?"/>
    </authorization>
    

    or

    <authentication mode="Windows"/>
    <authorization>
       <deny users="?"/>
    </authorization>
    

    This MSDN Article might be helpful too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC4 site with custom user/role provider. Entity Framework works with
I have an custom role provider that gets the roles a user belongs to
I have custom membership and role provider (C#) in my .net 4 (webform based)
I have created my own custom role provider class SGI_RoleProvider and configured properly. Everything
We have created a custom membership provider, but we have inherited the Role and
I'm creating my on membership and role provider with entity framework. I Have found
HI, I am implementing a custom role provider in my nhibernate application I have
I have just finished creating a custom role provider using LINQ to SQL for
I am going to setup a custom role provider, but I don't have a
I have a custom role provider that inherits off RoleProvider. In the web app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.