membership

Looking for a .NET library to do authentication that support multiple sources [closed]

半城伤御伤魂 提交于 2019-12-12 19:06:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a suggestion for a .NET library which can allow me to use in an ASP.NET application so that I have one profile for each user, but can associate authentication from multiple sources including: ASP.NET Forms based, windows live id, google, facebook, openid, etc... I want people to come to my

Why using telling .net about provider?

北战南征 提交于 2019-12-12 06:30:06
问题 I can't understand why many people talk about creating membership provider that inherit from some base class in the asp.net library and registering the provider in the web.config file. Because we can get anything we want without doing this. I have written a static class that can check if a user exists with a corresponding database, add users, authenticate users by calling FormsAuthentication.SetAuthCookie and everything works. Shortly, Why we need to tell web.config file which provider we use

Change Mapping of fields of CreateUserWizard control with membership provider asp.net 4.0

我只是一个虾纸丫 提交于 2019-12-12 03:00:02
问题 I am using CreateUserWizard Control with membership provider in asp.net 4.0. In this case user name is stored in 'user name' field in aspnet_Users table. I want to save 'user name' field in email field of aspnet_Membership table (In my case username is also email); In other words I want to change mapping of these fields. How can I do this? Note: My Problem is how to change mapping. Above is the only example 回答1: You can easily achive by calling CreateUser method instead of using

I have a Login Control.Even after successful Login it does not redirects to destination page

一笑奈何 提交于 2019-12-12 01:19:52
问题 I have a ASP.NET Login Control with Forms authentication.Even after successful Login it does not redirects to destination page.But it uses returnURL and stays at same Login page.How to make Login Control to redirect to specified destination page? 回答1: If you haven't done so already, I think you just need to set the default url in the forms tag (web.config like so) <forms loginUrl="blablabla.aspx" defaultUrl="YourDefaultPage.aspx" /> Give it a go and let us know how you get on. 来源: https:/

dynamically allow roles to a page or folder

孤街醉人 提交于 2019-12-11 21:13:14
问题 I am using asp.net webforms. I use a web.config to define what roles can access pages and folders. like this <system.web> <authorization> <allow roles="Admin" /> <deny users="*" /> </authorization> </system.web> how can I do this dynamically? so without deploying I could add a role, like 'Developer' Is there a way I could read these from a database? thanks 回答1: Not sure what exactly are you asking here... The authorization sighted by you is known as URL Authorization and provided by in-build

SSO between ASP.Net and JSP

半腔热情 提交于 2019-12-11 18:54:25
问题 I built an ASP.Net MVC 4 application which uses forms authentication by means of a custom membership provider inheriting from the Simple Membership. Everything is working fine, but now I have a new requirement: I need to integrate a JSP application with mine . This means that it has to authenticate against the same user database of my application and that they should somehow share the session in order to achieve a kind of Single Sign-On among the two applications ( if an user is already

How can I support anonymous users with my application?

北慕城南 提交于 2019-12-11 18:54:05
问题 I need to implement a user authentication system that supports anonymous users, like how this site works. Can it be done with the default asp.net membership provider? if not, what are some of the things I need to do? 回答1: Yes, it can be done. There's even a special event to migrate anonymous user details once the user logs in: http://msdn.microsoft.com/en-us/library/system.web.profile.profilemodule.migrateanonymous.aspx 来源: https://stackoverflow.com/questions/647038/how-can-i-support

The user name or password provided is incorrect. in MVC 3 Internet Application

不问归期 提交于 2019-12-11 18:51:17
问题 I have a " Internet Application " - " A default ASP.NET MVC 3 project with an account controller that uses forms authentication. " called MyMv3App . I run the site in IIS Express using Ctrl + F5 and then I go to localhost:10382/Account/Register and I create a user " test1 ". Once the user is created I'm redirected to the Home page. I log off. Then I go to localhost:10382/Account/LogOn and type the username and password for the user "test1" and click on "Log On" button and the user is logged

asp:Login control, remember me is not remembering me

三世轮回 提交于 2019-12-11 13:40:47
问题 I have an ASP.NET login control on a page, with the "Remember Me" checkbox displayed. I have checked in trace and the authentication cookie is being created, I have sliding expiration set and a timeout of 60000, yet when I return to the website the login is not being remembered. Any ideas where else I can check? Thanks, Darryl 回答1: Correct! The Remember Me checkbox doesn't do anything for you and why should it? After succesful login; you could create the cookie from code and (when entering

How do I find out total number of sessions created i.e. number of logged in users?

感情迁移 提交于 2019-12-11 12:36:25
问题 Hi guys I have a simple membership based website where users log in and have their own profiles. I woudl like to be able to tell at any given point in time how many users or rather which users are currently logged into my website. Its a simple membership based system in php. One way I uderstand it creating a table in a db and storing login details there and session data as well but can this be done in some other way i.e. anyway to find out how many sessions have been started and all the