asp.net-identity-2 Questions
1
I have 2 projects in my solution. First one is simple mvc project and the other one is web api. There was no pre-written code in web api. I put all logics myself. Now I want to add asp.net identity...
Fox asked 4/11, 2015 at 12:48
5
I'm trying to confirm an account but I'm getting "invalid token." error.
Here's what I'm trying:
var code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
var callbackUrl = Url.A...
Kamp asked 17/12, 2014 at 21:34
3
Solved
I have an ASP.NET Core site that uses cookie authentication for most pages. For those pages, the default server response of providing a 302 redirect for an unauthorized client is desirable. However...
Erechtheum asked 3/2, 2017 at 17:48
2
If my Gmail account has Access for less secure apps disabled, then my application can't send emails through this account. Instead I get "The SMTP server requires a secure connection or the client w...
Combo asked 25/8, 2014 at 17:18
3
Solved
I'm having issues with getting Social login to work in our existing ASP.NET MVC website project. The normal customer (our custom DB) login works just fine. For some reason the Challenge method on t...
Pope asked 24/9, 2014 at 18:4
2
Solved
Update:
What are the control/fields whose value would be submitted when the form is post back?
In an ASP.NET MVC Form, if user double clicks on the submit button, the form would be submitted tw...
Carlie asked 4/4, 2019 at 5:21
3
Solved
I have an ASP.NET MVC 5 application using ASP.NET Identity 2.1.0 for user authentication.
Everything worked fine in the past, but now I found out that persisting user sessions does not work anymore...
Chon asked 8/9, 2014 at 19:26
1
Solved
I am using ASP.NET MVC, Identity2.
I have added "FirstName" Custom ClaimPrincipal:
public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser, long> manag...
Botanomancy asked 13/2, 2019 at 5:56
3
Solved
When will the result of Usermanager.VerifyHashedPassword result be PasswordVerificationResult.SuccessRehashNeeded ?
What to do if such result occur?
When using VerifyHashedPassword i only check ...
Acariasis asked 15/5, 2015 at 5:13
2
Solved
I'm using ASP.NET Identity (Database First) in my ASP.NET MVC application. I followed the instructions here, to set up the ASP.NET Identity with database first approach.
My AspNetUsers table has ...
Shoshone asked 20/8, 2018 at 16:9
1
Solved
We have a customer facing website and a back office for creating users. Creating a new user with a welcome email with password reset works flawlessly when running both application on IIS Express on...
Implement asked 19/11, 2018 at 19:25
2
Solved
(Edit - Found proper fix! see below)
OK - this is my first attempt at .Net Core 2.0 and authentication, though I've done things with Web API 2.0 in the past, and have worked fairly extensively on ...
Pilpul asked 20/9, 2017 at 13:46
1
I am using ASP.NET Identity with several external login providers and I need to handle the following scenario:
1) A user logs in using an external service (let's say it is Facebook),
application g...
Nalda asked 25/2, 2015 at 13:38
2
Solved
I have some problems with adopt Web API 2 Identity. In project.
I add StartUp.cs
Like this:
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(MyNamespace.Startup))]
namespace MyN...
Ruddock asked 26/5, 2015 at 16:0
2
Solved
This might actually be more of a conceptual question. In Asp.Net Identity the PasswordHasher generates a different hash for the same string every time you do:
new PasswordHasher.HashPassword("mySt...
Rave asked 23/12, 2015 at 21:14
2
Solved
In MVC5 Identity 2 SignInManager.PasswordSignInAsync take user name for login.
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: f...
Hairbreadth asked 16/12, 2014 at 6:33
1
In my API I have 2 endpoints, first that generates email to reset password form (I generate token using UserManager.GeneratePasswordResetTokenAsync).
Second endpoint is for actual password reset (I...
Lightman asked 25/7, 2018 at 12:39
2
I have been using ASP.NET Identity 2.2.1. Following is the code in post method of VerifyCode action.
var result = await SignInManager.TwoFactorSignInAsync(model.Provider, model.Code, isPersistent:...
Cutler asked 22/6, 2015 at 12:36
6
Solved
I'm using MVC5 Identity 2.0 for users to log into my website, where the authentication details are stored in an SQL database. Asp.net Identity has been implemented in a standard way as can be found...
Mcardle asked 5/2, 2015 at 2:48
2
Solved
This question is continuation of my previous one: ASP.Net Identity 2 login using password from SMS - not using two-factor authentication
I've build my custom OAuthAuthorizationServerProvider to su...
Nimiety asked 15/4, 2016 at 12:39
8
Solved
I have a drop down list box which lists roles. I want to get the list of users having that role. I mean list of users that are in "Administrator" role or "CanEdit" role. Here is my code:
public IQ...
Lanctot asked 23/5, 2014 at 8:27
3
Solved
Right, so..I think I'm confused!!
I have a few ASP.NET MVC 5 sites running using ASP.NET Identity 2.1 and everything is great. I am creating a new MVC 6 site and I would like the users to use the...
Voltz asked 21/4, 2016 at 8:49
2
I am migrating users from a legacy user store to ASP.NET Identity 2.0 in my ASP.NET 5.0 web application. I have a means of verifying legacy hashes, but I want to upgrade them at login-time to ASP.N...
Sisely asked 20/5, 2017 at 0:14
2
I'm using asp.net mvc 5 with external provider owin provide (facebook, twitter)
ApplicationUserManager.Create is called on every request. There is a lot of unnecessary stuff for logged in user in ...
Barron asked 17/11, 2015 at 18:57
2
Solved
Current Environment
Visual Studio 2015, MVC5, Asp.net Identity 2.0, Entity Framework 6.0
Problem
I was trying to get User.Identity.GetUserId() after user is just authenticated, but got "Object re...
Peavy asked 16/3, 2016 at 10:18
© 2022 - 2024 — McMap. All rights reserved.