membership-provider

login authentication system c# .net

I have a simple site with a simple db. i want the ability to have some sort of login system. there will be 2 types of user: Admins and Non-Admins How can i easily create a login system using my existing database. i have read around using membership providers and using the tool aspnet_regsql.exe but dont know too much. i'm working in c#...

Integrating 2 different user dbs into a single ASP.NET MVC membersip provider?

I'm working on a project that needs to authenticate users based on records in two different databases. All administrators are stored locally and require full functionality to manage their accounts (reset password, etc). Regular users are authenticated against a different database used by another web app, so I only need to check that th...

How do I manually set a user's role in ASP.NET MVC?

This project I'm working on requires me to keep a local db of admin users and use an external db for regular users. Anyone who passes authentication in the admin db should be assigned the 'admin' role, and anyone authenticated through the other db will always be assigned a 'user' role. Can I manually assign these roles? I don't need t...

.NET MVC user details in Controller CTOR

I would like to find a way to use custom User provider within a controllers ctor in order to not have to get the user on every method (dirty).. This is what is in my ctor but keeps returning null? Resource oResource; public EntityController() { try { DataEntities oEntities = new DataEntities(); oResource = oEnti...

Programmatically adding a Membership Provider

I have a .Net application that uses an arbitrary number of Membership providers. I will not go into the reasons, but I do not want these to be pre-configured, but I want to create and add them programmatically. Is there anyway to do this? I have no problem creating the providers, but Membership.Providers is readonly, so I can't add them....

SharePoint Forms Authentication Provider Name Prefix on Username

I have setup a SharePoint site with forms authentication and My Sites. The users username displays correctly on the main site collection, however whent he user creates a My Site the user is always referred to as : for example it might be: sqlMembershipProvider:testuser This can be seen in this image: http://img141.imageshack.us/img141...

can i change membership provider GetAllUsers method?

Hi i am using vb.net and the .net membership provider. i want to bring back a gridview with user account information, like GetAllUsers() does. However i want to only bring back users with certain profile information, that will be users whos profile information matches the selected value in a dropdownlist on the same page. I am using pro...

Asp.net MVC - How can I get user roles without knowing these roles?

Hi! I'm working on this project that an admin user can create some User's Groups that will be working as the project roles. So, the admin will create a User Group named "SuperAdmin" and will select in a dropdownlist the users that will be part of this group. I've worked before in a solution using RoleProvider and using Controller's At...

Multiple Membershipprovider for one application

I have a site that uses the SqlMembershiprovider. Its is a webshop. The user logs on with his username and password there. Apart from that there is controller that is responsible for displaying delivery details for orders, that are imported from another system. These orders have no connection to users in the membershipsystem. To display...

Dependency injection and ASP.Net Membership Providers

I am in the process of creating a custom membership provider for an ASP.Net MVC website. The provider is being created as a separate class as part of a bigger library. There is a need for the back-end data store to be flexible as it could be an Xml File or SQL database. My initial thought was to create an interface for the data store and...

Security using the Membership provider that will support Active Directory and your own bespoke provider

I have a task of dealing with security on my .Net web application, the way it is to work is that if the user is logged in to Active Directory and the users AD name is in a database then they will be let in. On the same bases if the users AD name is not in the database then they will be asked to login, with a user name and password, held...

How do I set minumum password requirements in Umbraco for the membership provider?

I am trying to set minimum password requirements for my membership provider in Umbraco. Currently my web.config membership section looks like this: <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15"> <providers> <clear /> <add name="UmbracoMembershipProvider" type="umbraco.provid...

Is there a localized membership status message in the framework?

I'm using the membership provider to create a new user. The membership status I return can be any value from 0 to 11, each value being a different status. Is there a way to get a localized message from that status from the managed code? I know how to hand code it, but I wondered if it's not allready localized and ready to use from somew...

Umbraco Back Office Membership Provider

Has anyone had any experience trying to write a custom Membership Provider for the Umbraco back office? I've run into all sorts of trouble trying to make this happen. You can see some more details here: Umbraco Issue Tracker If you made it work, what steps did you take and how did you make it get along with the umbracoUsers table in th...

Keeping Membership Provider's Authentication in Web Service

Hello all, I have a web service(.asmx) that is written in .NET. There are two methods in it; Login() and Add(). Login() gets username and password, validates user via ASP.NET membership provider. Once the user is authenticated, Add() web service method can be called(there is authentication and role check). I have following attributes ...

ASP.NET Membership Provider and network domain

First off, I'm not entirely sure that my question title is very descriptive, so my apologies for that. I am working on a new site and will be using the MembershipProvider system (well, a custom implementation anyway), and I've run across a unique problem. Since the machine I'm developing this on is hooked up to my employers ActiveDirec...

MembershipProvider and web.config

Where can I get a list of all the configuration properties for the Membership provider that can be added to the web.config, i.e. <membership defaultProvider="MembershipProvider"> <providers> <clear/> <add name="MembershipProvider" type="Providers.MembershipProvider, Providers" description="membership provider" passwordFormat="...

Microsoft Membership Provider Vs Custom Provider Vs Complete Custom Login System

I am currently converting a very old, but working classic ASP site to ASP.Net. It has a completely custom written user management system. Whilst it works fine, it really needs a refresh as I want it to be more flexible for some future projects in the works. When I asked someone about this, they said "You need to use the Microsoft Provi...

ASP.NET membership providers in non-web apps?

Does anyone know if it's possible to use an ASP.NET membership (and role) provider in a non-web app (ie in a desktop C# app)? Related question -- is there an LDAP membership provider (it looks like SharePoint has one, but I don't think it's the same as the ASP.NET provider). I'm sure the Active Directory one is probably close, but I'm ...

Recommendation for third party Asp.Net membership providers

I am working on a web application that has strict security and auditing requirements (HIPPA stuff). So we are evaluating whether we should build our own custom membership and role providers or whether there is a commercially available component that we can buy. If you have any experience (good or bad) with third party Asp.Net membershi...