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

  • Home
  • SEARCH
  • 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 7863599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:32:06+00:00 2026-06-02T23:32:06+00:00

I am creating a project that uses EF Code First approach and now I

  • 0

I am creating a project that uses EF Code First approach and now I have to create the users. I want to implement OpenID, because it is really cool and modern. There are plenty of tutorials of how to do that (haven’t read them, but I will of course).

I am pretty used now to EF and MVC, but all the stuff with the members, roles, providers, etc is foggy. There are two things that I am certain of:

  • I want to use OpenID and
  • I want to manage the users table with EF Code First

So I would appreciate if anyone can give me some hints:

  • Do I have to implement the MembershipProvider or I could use a project like this one: codeplex?
  • How OpenID, EF and Membership will go along with each other?

I know that this is VERY wide subject, but I need only basic hints, I need to know from where to start. Things like “You can use MembershipProvider and OpenID, but you better don’t, because…”.

Any help is greatly appreciated.

  • 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-02T23:32:07+00:00Added an answer on June 2, 2026 at 11:32 pm

    The requirement is the users to be able to log in with facebook, yahoo
    and others, as it is very annoying to create accounts everywhere.

    What we are looking at is providing multiple Authentication options to our end Users, whether it be a username and password combination that you manage, an OpenId provider or an OAuth provider.

    I find the best approach is to make these two concepts (membership and authentication) explicit.

    I don’t really care, how the user authenticates, just providing I
    can find their user information when they do.

    A simple approach to have a User table with the following information:

    Name
    Email
    Authentication Type
    Authentication Id
    

    Example:

    Name        Email       AuthenticationType      AuthenticationId
    ----        -------     ------------------      ----------------    
    John        a@b.com     GoogleOpenId            OpenIdClaimId
    Ben         c@d.com     Internal                ben
    Dave        e@f.com     FacebookOAuth           FacebookUserId
    

    When the user authenticates, we can load their user information using the authentication method and id as the criteria. For the internal membership provider we can use their username, for OpenId their claim url and for OAuth their provider id (such as the Twitter id).

    So by all means use EF to manage your Users but I would treat the membership provider as just another authentication mechanism in which case you may as well use the standard SqlMembershipProvider.

    I wrote this post a long time ago (in the context of eCommerce stores) that may be of some use.

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

Sidebar

Related Questions

I am creating a new Grails project that uses some Java code to do
I have an ARM project that I'm building with make. I'm creating the list
I have been busy in my project creating a webapp (in struts) that manages
Background: I'm creating a dashboard as a project and I have a query that
I'm creating a website/codeigniter-project that uses views which link to external CSS files. Everywhere
I have a django project that uses a postgres db with a number of
I've got a Visual Studio Setup Project that uses the msiexec.exe file to create
Say I have a project that uses external dependencies which are imported from another
I have a C++ project that uses IBPP to access a firebird database. I
I'm creating a node.js project that uses express.js and jade. I'm trying to reate

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.