Questions tagged [asp.net-membership]
ASP.NET membership gives you a built-in way to validate and store user credentials.
3,253
questions
2
votes
1
answer
34
views
What is the logic is MembershipUser.ResetPassword() method
Normally, ResetPassword(string passwordAnswer) returns a new password for the membership user. ChangePassword(string oldPassword,string newPassword) takes two parameters: old and new password. I'm OK ...
0
votes
0
answers
27
views
Migrate DNN website with ASP.Net Membership to new Angular/NodeJs website
I have an existing DNN website that uses an ASP.NET Membership with encrypted password and a passwordSalt in the aspnet_Membership table. The password format is 3, encrypted (not 2, hashed). As I ...
1
vote
1
answer
58
views
Use Oracle for ASP.NET Membership Provider
I have a web site in asp.net (web forms not MVC) with .NET framework 4.6.1 with standard Microsoft authentication on SQL Server:
<membership defaultProvider="SecuritySqlMembershipProvider"...
0
votes
0
answers
38
views
Can I use MySqlSessionStateStore and ActiveDirectoryMembershipProvider together?
I am trying to add MySqlSessionStateStore to a asp.net site I am working on that already uses ActiveDirectoryMembershipProvider. With just ActiveDirectoryMembershipProvider it will load the login page ...
0
votes
0
answers
18
views
Calling WCF Rest Webservice with Membership Auth and no token
I need pointing in the right direction.
I am trying to call a WCF Rest Webservice that has been created by someone else.
The whole project is under network membership authentication.
If I go to the ...
0
votes
0
answers
32
views
Use ASP.NET Membership Provider in ASP.NET Web Application on react-signup-login-component from npm
I have React integrated in my ASP.NET Web Application. There is a Register/Login page(component) in React using react-signup-login-component from npm as I want to have the functionality of user ...
0
votes
0
answers
61
views
How to integrate SSO sign-in with membership provider in ASP.NET Web Forms?
I'm trying to implement SSO sign-in into an existing .NET Web Forms Framework 4.5 (visual basic) application that has Membership implemented for signing in and interacting with the database (to create,...
0
votes
0
answers
34
views
ASP.NET Membership & Identity relation to Machine Key
I read that a machine key is used to encrypt and decrypt ViewState & Forms authentication. And is also used to create unique identifier when cookie is created in the client machine from a server ...
0
votes
0
answers
43
views
System.NullReferenceException when trying to assign roles to created users on asp.net membership CreateUserWizard
I have an issue when I try to assign roles by default to users who complete registration, I am using asp.net membership CreateUserWizard control, after assigning the CreatedUser event handle I came ...
1
vote
1
answer
107
views
How do I convert multiple ASP.NET web forms apps using forms authentication (Membership) to point to a new .NET Core Identity site for their login
First, I want to apologize as this is my first post and I don't even know how to properly phrase my question.
Here's what's going on:
I have several legacy ASP.NET web forms applications (.NET ...
0
votes
1
answer
41
views
unable to retrieve the role in asp.net with MSSQL Server
I am working with asp.net and MSSQL server for development of online application, I like to add roles and Membership in website, membership and roles are stored in SQL Server, I tried and successes ...
0
votes
2
answers
22
views
PasswordReset() throws exception - passwordAnswer?
I have an app that I'm trying to implement the following, but can't seem to figure out how:
User signs up, but the system creates its own temporary password for them
Admin approves user and as part ...
0
votes
0
answers
19
views
Odd Behavior with MembershipCreateStatus.Success
I'm having some really odd behavior with some code that creates an ASP.Net user and then checks for success. The problem is, it seems to run code in BOTH branches of the if else:
if (result == ...
0
votes
2
answers
90
views
Associate your Microsoft account. Email entry. Again and Again
I just put together a .Net Core App via the documentation that authenticates with an Azure Active Directory.
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/microsoft-...
0
votes
0
answers
74
views
C# GetAllUsers() Item has already been added. Key in dictionary error
I am new to C# using Membership to handle users.
I inherited code I didn't write.
The code is trying to get all users so it can show all in a table. The other option it is trying to do is show each ...
1
vote
0
answers
87
views
How to read roles from database instead of web config in Role-Based Authorization asp.net?
We are working with an old designed system that is Role-Based and reads users roles from webconfig as follows:
<authentication mode="Forms">
<forms loginUrl="/UserMgmt/login&...
0
votes
1
answer
146
views
Connection Timeout when trying to get all users
I am trying to get all users in a database with approximately 200k data store. I am trying to convert their passwords but I encounter a timeout while retrieving the users using .GetAllUsers(). Below ...
0
votes
2
answers
292
views
Item has already been added. Key in dictionary c#
I am receiving an error in the
var passwords
The error is Item has already been added.
Key in dictionary: 'sample@email.com' Key being added:
'sample@email.com'
int totalrecords= 2;
if (encrypted ...
0
votes
1
answer
51
views
Loop through membership list and get users
I am trying to test my code by getting 10 specific users that was created recently or having a specific character. I have based my code to this one. This code is from Dan.
Changing passwordFormat from ...
0
votes
1
answer
133
views
Authentication and Authorization of an MVC client application throgh WCF service?
First of all, I'm sorry if this question was already asked before. I've searched for a long time and there are many questions related to this but I can't get my head around this.
I have to build an ...
0
votes
1
answer
158
views
How to use Active Directory connection string membership provider when it is published outside our domain or on azure
We develop a web application using ASP.NET Webforms and the Active Directory membership provider. It works fine on local server, or on any server has our domain, but when I published it on Azure, it ...
0
votes
1
answer
245
views
ASP.NET MVC 5 Force all users to logout (using cookie auth)
I'm using ASP.NET MVC 5 with cookie-based authentication. I want to make a change in user roles and enforce it right away, but roles don't change until a user logs out and back in.
How can I force all ...
0
votes
1
answer
21
views
How do I log a user back in after change of Email/Username? - Asp.net/VB.Net
I found this code on a site which was written for me and works, and I'm trying to use it on a new site. The code checks that a emailAddress doesn't already exist when a user edits their account ...
0
votes
0
answers
145
views
.NET Users missing IIS 10.0
I have an asp.net web application (.Net Framework 3.5 based) which uses Forms Authentication (AspNetSqlMembershipProvider). I managed my users in localhost but when I deployed my application to server,...
2
votes
1
answer
171
views
Is it possible to count how many times a user has logged with wrong password or username
I am trying to display how many times renaming to log in to the system. But I did not reach to solution for this issue.
This is the code
private void LogInUser(string username, string password)
{
...
0
votes
1
answer
607
views
Best Practice for Storing Election Votes in a Database
Is there a good way to store de-identified voting data related to an election, while still ensuring people can't cast multiple votes? What is the best practices for storing this kind of data, ...
1
vote
0
answers
157
views
Create a user in another Asp.Net Identity Database other than the current Asp.Net Identity
Is there a way to create an entry (a user) in another Asp.Net Identity Database from another Project other than creating a user in the current Asp.Net Identity? Basically, in my ASP.NET CORE (main) ...
1
vote
1
answer
404
views
Is it possible to use Asp.Net Membership in Asp.Net Core without password reset?
Recently my client approached me with a migration project. They are planning to migrate the project from ASP.NET MVC to ASP.NET Core MVC. I noticed that the legacy project uses ASP.NET Membership to ...
0
votes
1
answer
114
views
share access toke on xamarin forms
I Have xamarin forms application, authenticate with asp.net membership and give accesstoken after authenticate.
In other platforms (ex silverlight, javascrip libs ....), this token access shared ...
1
vote
0
answers
58
views
Asp.net membership table access from mvc5 entity framework context
I have a new app lets call it mvc5Identity app. I login to that app using asp.net identity user. In this app I have another EF Context that connects me to a web forms app database. Let's call it ...
0
votes
0
answers
36
views
Retrieving user/profile list from membership provider insanely slow
I have an application that has been taken from a sharepoint user control and converted to plain web pages. Everything is working fine - I can sign up and retrieve my password, etc. However, when I try ...
1
vote
0
answers
78
views
Convert ASP.NET MVC membership to ASP.NET Core identity system
I have a website that is using ASP.NET MVC and membership. I added another ASP.NET Core API project, and I want to use the new identity system.
My current membership login is like this:
...
0
votes
1
answer
646
views
asp.net membership in asp.net webform website using VS2019
I am testing to use ASP.Net Membership in ASP.Net webform application using VS 2019, By default when i create new webform application it creates identity authentication for application and i want to ...
0
votes
1
answer
577
views
aspxauth cookie getting stripped in iframe
We have an asp.net MVC website (4.5.2), using the asp.net membership provider that displays health and wellness videos. One feature we have provided to our clients is an iframe version of our videos. ...
1
vote
4
answers
2k
views
AspNetUsers to IdentityUser with Entity Framework Core
Background
I have a project written with C# and ASP.NET core (v2.2). This project is connected to a database that holds a table called "AspNetUsers". The building strategy is "Database First".
I'm ...
0
votes
2
answers
138
views
Umbraco admin logs out Membership user
Running Umbraco 7.5 with a custom ASP.Net (Web forms) app in Visual Studio 2013 and creating a Membership user via code. This works and creates the user as i can see the user within the Members ...
0
votes
1
answer
115
views
AspNet Membership Encrypted Password Generation
Before we begin I want to make it clear that I know how bad this question is. It's a terrible situation but I'm being constrained by some very strange specifications.
I know that not only should you ...
0
votes
1
answer
136
views
Membership.GetUser() always returns NULL on Visual Studio for Mac
I'm working on ASP.NET MVC project using (VS 2019 Preview for Mac) and got stuck on login and registration. When I call Membership.GetUser(login) I always got NULL as return. On Windows 7's VM I can ...
0
votes
1
answer
59
views
What is the default class for managing ASP.NET profile properties
In .NET we have the System.Web.Security.Membership class which is the standard way to create, delete, search users etc. This uses the underlying membership provider as defined in the web.config file. ...
0
votes
1
answer
91
views
Using the ASP.NET OAuth providers without ASP.NET Identity
My project is using asp.net membership (not Identity), I am trying to implement the OAuth based on the steps listed at this link
While testing the code, it created the identity tables at my database (...
4
votes
0
answers
4k
views
How can I use existing ASP.NET Membership data in a new .Net Core project?
I am starting a new .Net Core Web application. And I want to use the authentication tables (aspnet_Users, aspnet_Membership etc) that already exist in our database. But I am not sure how to do it.
...
0
votes
1
answer
18
views
Authentication on one site using the ASP.NET membership of another
We have one site that uses ASP.NET Membership for its user accounts. Let's say this site is at www.domain.com.
We have another site, let's say at www.domain.com/site2, which already connects to the ...
0
votes
1
answer
394
views
ASP.NET MVC membership login works locally, not on azure app service
My ASP.NET MVC application is deployed on Azure app service and was working until today. It won't let me login anymore through the application which uses ASPNET membership. If I run the application ...
0
votes
0
answers
298
views
ASP.NET MVC site which allows anonymous user but when logged in runs as the logged in user's AD identity?
I have a ASP.NET MVC 5 site that uses forms authentication via a custom membership class.
My site's login procedure:
An anonymous visitor tries to navigate to my site. He's allowed to do so, but is ...
-1
votes
1
answer
61
views
How to find method of encryption
when using Asp net mvc for user management they create some table on SQL-sever database like AspNetRoles, AspNetUserRoles so they using a method of encryption for id on table, how to insert new role ...
0
votes
1
answer
30
views
Create new user with Membship class c# vs2017 community
its been a while since I last used the Membership class to create a new user account with vs2017 community. I've followed a tutorial from microsoft to the point where the code is:
MembershipUser ...
0
votes
1
answer
293
views
Why don't the UserManager of Identity recognize the Create method in configuration method?
I am new to ASP.NET Identity and created a simple sign-in process and have registered the delegates in configuration method of IdentityConfig of my project.
I am trying to register them but the ...
-2
votes
1
answer
57
views
Logging into FormsAuthentication With Email Address Causes Redirect To Not Work
I have an asp.net/c# app that is using MembershipProvider and FormsAuthentication to verify a user is in Active Directory, creates a cookie and redirects back to the page they came from.
If the user ...
0
votes
1
answer
55
views
Get all users and profile fields in 1 database call
We currently have a page on our website that gets all our users and lists them.
var users = Membership.GetAllUsers();
This page then makes a Profile call for each user as it loops through them in ...
0
votes
0
answers
56
views
how can I force a certain user to log in again asp.net identity
I have a console job running where it will turn the islockedout column to 1 in the [ASPNETDB].[dbo].[aspnet_membership] table if a user hasn't logged in to the system for 45 days or more.
So when ...