asp.net-core-identity Questions
3
I have Asp.net Core Identity version 2.0 Set up and running. I am finding that _signinManager.SignoutAsync is not logging out user once they have signed in with Google. When I go back to my Login M...
Dorina asked 9/9, 2017 at 14:4
1
According to learn.microsoft.com ASP.NET core implements the Synchronizer Token Pattern to mitigate CSRF.
The Anti request forgery mechanism has many drawbacks impacting users:
ex 1: login page ope...
Ligni asked 8/10, 2019 at 16:18
2
I have the following configurations in Startup.cs:
services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
//options.DefaultChallen...
Mariejeanne asked 10/6, 2019 at 5:53
15
Solved
I'm trying to pull out all my Identity users and their associated roles for a user management admin page. I thought this would be reasonably easy but apparently not. I've tried following the follow...
Arlana asked 23/6, 2018 at 19:44
3
Solved
I have an ASP.NET Core site using AspNetCore.Identity.EntityFrameworkCore 1.1.1 and cookies to authorize/authenticate my users. No matter what I choose as my setting in the code below, the cookie e...
Tailrace asked 12/6, 2017 at 13:18
3
Solved
i've created an API and set up JWT auth from the same API (I chose not to use IdentityServer4).
I did this through services.AddAuthentication
And then I created tokens in the controller and it work...
Severe asked 31/1, 2021 at 19:20
3
Solved
Is it possible to don't use Email to register and login in asp.net core identity?
Users just register by mobile number and login by SMS verification.
Gizmo asked 11/6, 2017 at 5:25
0
I wonder why the User.GetUserId(); returns 0 wherever it's used. What's the problem?
Actually, the IsAuthenticated = false for the User object.
I tried to test my application using Postman and Angu...
Perspiration asked 12/12, 2023 at 16:31
3
I have a situation (database-first approach) where I want to change the password length of ASP.NET IdentityUser to let's say 4 characters. After much research, I found I can do it from the Startup ...
Dimitry asked 24/11, 2016 at 11:57
2
Solved
Are there any guides on how to set up ASP.NET Core Identity for a Web API?
Everything I find uses view models and has the register/login pages displayed on the server as a RazorPage.
MS's Intro doc...
Schellens asked 3/9, 2022 at 3:40
1
Solved
At some point recently, Microsoft started including IdentityServer functionality in the ASP.NET Core react template (on top of Identity Core). I'm trying to clearly understand the implications of t...
Innerdirected asked 31/5, 2020 at 21:18
1
In my Startup.cs file, in the Configure-method I'm trying to seed some roles.
I'm injecting the IServiceScopeFactory in the method call:
RoleSeeder(app.ApplicationServices.GetRequiredService<IS...
Samul asked 23/1, 2018 at 12:17
6
Solved
I've extended IdentityUser to include a navigation property for the user's address, however when getting the user with UserManager.FindByEmailAsync, the navigation property isn't populated. Does AS...
Marvismarwin asked 5/2, 2018 at 13:19
2
Solved
using asp net core identity - when user provides password and username to get a jwt token they post credentials to /api/token
should my token controller method be using usermanager to check the pa...
Wun asked 19/12, 2018 at 15:10
3
Solved
I add some fields in IdentityUser like a
public class CustomUser: IdentityUser
{
public string field1 {get;set;}
public string field2 {get;set;}
}
after migration, on Sql Management studio i...
Moyers asked 30/4, 2020 at 23:10
3
Solved
Any idea why am I getting this error? Error Message --> "IServiceCollection does not contain a definition for AddDefaultIdentity"
public class Program
{
public async static void Mai...
Gerfen asked 5/5, 2020 at 17:34
4
Solved
While trying to implement the answer from here > How to get the current logged in user Id in ASP.NET Core
and the user redirected me to here > https://github.com/dotnet/aspnetcore/issues/18348
var...
Mona asked 6/4, 2020 at 15:13
3
Solved
I am adding claims to the Claims Principal Identity and signing the user in. On subsequent requests, the added claims are available in the Claims Principal anywhere in the application, but only for...
Shatzer asked 27/2, 2020 at 3:56
3
Solved
UserManager.FindByEmailAsync returns null, but the user exists in the database.
The code below explain the strange problem:
var email = info.Principal.FindFirstValue(ClaimTypes.Email);
var test = n...
Regulate asked 14/1, 2019 at 7:20
10
Solved
I'm getting this error in Login Controller.
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Automobile.Models.Account]' while attemptin...
Florilegium asked 11/6, 2017 at 11:57
4
Solved
In Asp.Net Core Identity framework, I can easily require a unique email address by setting RequireUniqueEmail = true.
Is there any way to do the same for the user's phone number? Note that I don'...
Dunite asked 4/1, 2018 at 19:31
6
Solved
I've created a test project using:
dotnet new razor --auth Individual --output Test
This creates a Startup.cs that contains:
public void ConfigureServices(IServiceCollection services)
{
servic...
Colour asked 19/5, 2018 at 14:20
2
Solved
I've had no luck getting any Role or Policy attributes working in .Net Core 3. I started my project with the .Net Core Angular starter project with authentication.
I figured this was something to d...
Codpiece asked 14/10, 2019 at 8:38
2
Solved
I used:
services.AddAuthenticationCore().ConfigureApplicationCookie(o =>
{
o.ExpireTimeSpan = TimeSpan.FromHours(1);
o.SlidingExpiration = true;
});
to set my authentication cookie ExpireTi...
Pictograph asked 27/2, 2018 at 15:30
6
Solved
By default, ASP.NET Core Identity's password policy require at least one special character, one uppercase letter, one number, ...
How can I change this restrictions ?
There is nothing about that in...
Kryska asked 3/10, 2016 at 6:27
1 Next >
© 2022 - 2024 — McMap. All rights reserved.