membership-provider

How do i run aspnet_regsql on sql azure? [duplicate]

给你一囗甜甜゛ 提交于 2019-12-03 12:52:27
This question already has answers here : Migrating ASP.NET Membership Database to SQL Azure (3 answers) Possible Duplicate: Migrating ASP.NET Membership Database to SQL Azure How do I run aspnet_regsql on sql azure database? I made it work the hard way, by exporting all db objects over. However, I seriously believe that there's an easier way. Please help. AvkashChauhan When you run aspnet_regsql on sql azure database, the error occurs only because SQL Azure does not support the USE statement to switch database contexts when it executes commands against SQL Azure databases. To work around this,

what is the differences between Membership, SimpleMembership, ASP.NET Identity?

末鹿安然 提交于 2019-12-03 11:40:33
what is the differences between Membership , SimpleMembership , ASP.NET Identity ? Which one is best in web forms? How to use SimpleMembership in web forms. Limitation with SimpleMembership in web forms. user2315985 You listed them in progressive order by age. The Asp.net Membership Provider was first introduced with .net 2.0. Later. Simple Membership was released but most recently Microsoft has replaced SimpleMembership with Asp.net Identity (Microsoft.Aspnet.Identity.Core). This article should help you understand... Forms authentication using ASP.NET Identity & VS 2013 Remember, there are

Compare string to null - Why does Resharper think this is always false?

前提是你 提交于 2019-12-03 11:10:17
I have this code in my custom MembershipProvider: public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config) { if (config == null) throw new ArgumentNullException("config"); if (name == null) name = "MyCustomMembershipProvider"; ... } Resharper marks the second if-Statement and tells me, it would always evaluate to false. But why would this always evaluate to false? I could easily pass null to the method as a parameter. Is this a bug or is Resharper right here? PS 1: I use Resharper 6.1 PS 2: I know using string.IsNullOrEmpty() would be the way to

Assigning Roles with MVC SimpleMembership

谁说我不能喝 提交于 2019-12-03 11:07:41
I am trying out "SimpleMembership" in MVC3 via Nuget and have downloaded the sample to play with. The issue is that I cannot figure out how I would assign a role to a particular user. In the standard MVC membership you can just use something like: Roles.AddUserToRole(model.UserName, "StandardUser"); However, SimpleMembership only seems to have one method for roles exposed (unless Im being stupid!) which is public void RequireRoles(params string[] roles) { WebSecurity.RequireRoles(roles); } There must be an easy way as the following table was created as part of this nuget package: -TABLE:

ASP.NET: Where can I find a fast custom membership provider

て烟熏妆下的殇ゞ 提交于 2019-12-03 09:04:46
is there any custom asp.net membership providers that someone has already created online. I want to use a custom provider because their role provider is very sluggish and I would like to use integers instead of guids for user IDs There can be no alternative implementations of the standard membership provider API, given that it is based on non-generic interfaces. However, in practice the whole membership API adds very little value and it is fairly easy to roll your own solution. To help you get started here are a few of the helper classes that I typically use. First, some code to deal with

Microsoft Membership Provider Vs Custom Provider Vs Complete Custom Login System

时光总嘲笑我的痴心妄想 提交于 2019-12-03 07:32:59
问题 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 Provider" and gave a lecture on how Microsoft release all these things for free and how good they are and should be re used as much as possible. I have done quite a

Membership systems for MVC4 that support RavenDB

徘徊边缘 提交于 2019-12-03 06:06:59
问题 I create a lot of quick "proof of concept" MVC apps and I actually found the SimpleMembership provider that shipped with the MVC4 templates to be very handy since it gets me up and running with user registration & OAuth in a matter of minutes. But...I've started to use RavenDb (on RavenHQ for a lot for my projects). So, I starting trying to implement my own "custom membership provider" based on the ExtendedMembershipProvider and while doing that I realized that didn't make much sense. I later

ASP.NET Membership/Role providers for Postgres?

瘦欲@ 提交于 2019-12-03 05:15:48
问题 I am creating an MVC site and would like to use the built in Membership and Roles for .Net. I'm using the the .Net Data Provider for Postgresql (Npgsql), but am having trouble defining the membership defaultProvider and Postgresql connection string to connect to my local database. Can anyone help? 回答1: I have not verified this, but will be using it in a project soon. Hopefully I will have more info to follow, and it will "just work" :) http://code.google.com/p/pgsqlprovider/ Hoping to use

SQL to create .Net Membership Provider users

我与影子孤独终老i 提交于 2019-12-03 04:42:42
I have a SQL script that creates users in in my database. It uses the .Net membership stored procs. At this point it works fine. The only issue is that the passwords are saved clear text. What should I change here to they are salted/encrypted (Not sure what term to use here) GO DECLARE @return_value int, @UserId uniqueidentifier EXEC @return_value = [dbo].[aspnet_Membership_CreateUser] @ApplicationName = N'Theater', @UserName = N'sam.sosa', @Password = N'mypassword', @PasswordSalt = N'eyhKDP858wdrYHbBmFoQ6DXzFE1FB+RDP4ULrpoZXt6f', @Email = N'sam@Simple.com', @PasswordQuestion = N'Whats your

Ninject per session singleton?

走远了吗. 提交于 2019-12-03 04:41:28
So I'm trying to introduce the concept of a user to my application and have got my own set of custom login routines etc. working fine. In my module, I'm binding my IUserSession to my implementation and InSingletonScope. Now I suspect this was the case and have been able to prove that this is not the right thing to do, if I try and login with two users against the same site, I get only one set of data. If I implement a MembershipProvider, do I avoid such a restriction. I know that if I implement a membership provider, I don't have to inject everything, but my login isn't just a username