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 6121817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:49:37+00:00 2026-05-23T15:49:37+00:00

Background: I’m incorporating the SqlMembership provider into an existing system where I’m building a

  • 0

Background:

I’m incorporating the SqlMembership provider into an existing system where I’m building a web front end. The Membership database will be kept in a separate database.

Beyond the login account, there’s an additional mapping between the accounts that needs to be in place in the main database in order for an account to be able to log in.

Let’s say that this table gives the user the right to use the system.

My question:

I would like to somehow incorporate this into the provider. Is it possible without too much work? (Or is it better to keep it in the AccountMembershipService class?)
Actually regardless, I’m very interested in learning how to put additional login requirements into the provider.

I’m asking this because when I’ve been looking at creating a custom membership provider earlier it seemed at that time a little bit overwhelming.

In other words:

I want to understand how to extend the Membership Provider classes in general and how to extend the login method (ValidateUser) in particular.

Given the sample ODBC implementation It looks like one simply could subclass the default provider and override ValidateUser calling base.ValidateUser as the first step.
However it may or may not be that simple, and I’d be very happy to hear any first hand experiences from implementing or extending membership providers.

  • 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-05-23T15:49:38+00:00Added an answer on May 23, 2026 at 3:49 pm

    I wanted to do something similar, one of the requirements was to use an Oracle DB, so I implemented the OracleMembership provider, hence I could not waste my time rewriting the hole oracle membership provider (it works pretty fine), the second requirement was to use a custom authorization legacy system. So I realized that the Internet Application template which comes with the MVC 2 or 3 comes with a small implementation of the security for the site, specifically take a look on the AccountMembershipService class. You could move all of these elements out of the MVC app to a separate assembly so you could use it even on a client implementation. The AccountMembershipService uses the Membership provider as the underlying authentication system with the option of using FormsAuthentication.

    So I recommend you to take a look on that implementation. You could put your additional authentication code there so your application would stay cleaner and your don’t need to re-invent the wheel and you have the chance to add your own code.

    best regards

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

Sidebar

Related Questions

Background A lot of work has gone into optimizing database design, especially in the
Background: Our web app uses the jquery.constrain.js plugin to handle data entry in some
background: I work on an asp.net web application that is on a company intranet.
Background: I'm writing a 'standard' (nothing special) web application in Ruby (not Rails) and
Background I have an existing extension designed to accompany a browser-based game (The extension
Background info: We are currently 3 web programmers (good, real-life friends, no distrust issues).
Background: I'm testing a function within an ASP.NET 4.0 (Web Forms not MVC) and
Background: I have a Visual Studio solution consisting of a website + REST web-service
Background: Some time ago, I built a system for recording and categorizing application crashes
Background: I have some existing apps in the App Store and I have just

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.