membership

How should I implement user membership in my ASP.NET MVC site?

≯℡__Kan透↙ 提交于 2019-12-03 04:35:07
问题 I'm creating an ASP.NET MVC site and I need to implement login and membership functionality. Is this something where I roll my own? I already have a members table in my database, should I create a username and password hash field and just check against it? What about keeping the user logged in with a cookie that expires? Is this an instance when you would use ASP.NET's built in Membership service? ASP.NET MVC neophyte seeks help. 回答1: When you create a new ASP.NET MVC site, it already has

Admin pages to manage asp.net membership provider & Role management

戏子无情 提交于 2019-12-03 04:23:00
问题 Are there any open source projects that provide a front end to asp.net membership provider? Something like the one visual studio exposes through it configuration, but one that can be deployed on production. Examples of some of the functionality I would like to see in the front end is Add users Delete users Reset password Change roles. Add roles Etc 回答1: I found this MembershipStarterKit From TroyGoode on github: What is the Asp.Net MVC Membership Starter Kit? The starter kit currently

ASP.NET Application to authenticate to Active Directory or SQL via Windows Authentication or Forms Authentication

此生再无相见时 提交于 2019-12-03 03:47:25
问题 I am in the process of writing an application that will need multiple forms of authentication. The application will need to support authentication to Active Directory, but be able to fail back to a SQL Membership Provider if the user is not in Active Directory. We can handle the failing to the SQL Provider in code based on the username provided because the username will be a different format than the Active Directory username. Is this even possible? What I mean is, can I use membership and

ASP.NET Identity

烂漫一生 提交于 2019-12-02 20:36:58
I'm currently building a new ASP.NET MVC 5 project which I want to release around September. I need to choose a membership system, but I'm currently quite confused about which direction should I take. The current SimpleMembership works well, but will apparently be incompatible with the upcoming ASP.NET Identity. ASP.NET Identity on the other hand is absolutely new with zero documentation and can change anytime. Finally it seems that string based IDs are used here, which seems like a very unnecessary overhead compared to integer based IDs, which SimpleMembership supports. Is there a good,

Excluding the profile provider, is there an easy way to add custom fields to ASP.NET membership?

风流意气都作罢 提交于 2019-12-02 18:08:17
问题 I know you can use the Profile provider for custom fields, but given the way the data is stored in the database, it is not efficient for my needs. Is there a way to add custom fields to the database for use with membership, while taking advantage of all the built in membership stored procedures and c# classes? (Short of adding fields to the table, and modifying all the procedures and methods) Thanks! Kevin 回答1: Have you looked at the Table Profile Provider, here is a link: http://www.asp.net

Admin pages to manage asp.net membership provider & Role management

主宰稳场 提交于 2019-12-02 17:38:17
Are there any open source projects that provide a front end to asp.net membership provider ? Something like the one visual studio exposes through it configuration, but one that can be deployed on production. Examples of some of the functionality I would like to see in the front end is Add users Delete users Reset password Change roles. Add roles Etc I found this MembershipStarterKit From TroyGoode on github: What is the Asp.Net MVC Membership Starter Kit? The starter kit currently consists of two things: A sample website containing the controllers, models, and views needed to administer users

ASP.NET Application to authenticate to Active Directory or SQL via Windows Authentication or Forms Authentication

ぃ、小莉子 提交于 2019-12-02 15:59:31
I am in the process of writing an application that will need multiple forms of authentication. The application will need to support authentication to Active Directory, but be able to fail back to a SQL Membership Provider if the user is not in Active Directory. We can handle the failing to the SQL Provider in code based on the username provided because the username will be a different format than the Active Directory username. Is this even possible? What I mean is, can I use membership and use both ActiveDirectoryMembershipProvider and SqlMembershipProvider together or will I have to roll my

apple developer account membership under 18

岁酱吖の 提交于 2019-12-02 10:00:18
I'm 17 and I want to start publishing and using the benefits that comes with the Developer Program Membership. In the legal agreement says that I should be over 18, and I'm not so, i can't do it. I know one solution is use a account in my father's name. But I have one question. In the future, when I'm 18, this account membership can be transferred to my Apple ID without pay in 99 dollars and don't lose the 15% plus Revenue After One Year (85%) or I need in my Apple ID pay another 99 dollars to get membership statute (switch the app for this account) and wait more one year to have 85% Revenue

Excluding the profile provider, is there an easy way to add custom fields to ASP.NET membership?

十年热恋 提交于 2019-12-02 09:34:28
I know you can use the Profile provider for custom fields, but given the way the data is stored in the database, it is not efficient for my needs. Is there a way to add custom fields to the database for use with membership, while taking advantage of all the built in membership stored procedures and c# classes? (Short of adding fields to the table, and modifying all the procedures and methods) Thanks! Kevin Have you looked at the Table Profile Provider, here is a link: http://www.asp.net/downloads/sandbox/table-profile-provider-samples/ . This might solve you problem, since it stores each value

MVC 4 simple membership. How to check is somebody logged in or not

落爺英雄遲暮 提交于 2019-12-02 02:41:08
I'm new in mvc 4 and can't understand exactly how simple membership worked. After all configuration I put this code to AccountController to see how it works and is it work at all string UserName1 = WebSecurity.CurrentUserName; bool LoginResult= WebSecurity.Login("admin", "111111"); string UserName2 = WebSecurity.CurrentUserName; WebSecurity.Logout(); And when I run debugger I see that after all finished UserName1 = "" LoginResult = true UserName2 = "" Everything is ok except UserName2. Why it is empty? Login was sussess... Also I can't see UserID at WebSecurity and WebSecurity