Top "Asp.net-identity" questions

The ASP.

userManager.AddToRoleAsync() - Error: role does not exist

I'm creating a user registration system using .NET Core, Identity Core, and MVC Core. I'm able to create users and …

c# asp.net-core asp.net-identity asp.net-identity-3
No service for type 'Microsoft.AspNetCore.Identity.SignInManager When

I am getting InvalidOperationException: No service for type 'Microsoft.AspNetCore.Identity.SignInManager 1[Authorization.IdentityModels.ApplicationUser]' has been registered. when …

asp.net-core asp.net-identity identity .net-core
What is the Signing Credential in IdentityServer4?

We are in the process of implementing Identity Server 4 with our .NET Core web app. I went trough the Identity …

asp.net-core asp.net-identity identity identityserver4
Prevent login when EmailConfirmed is false

The newest ASP.NET identity bits (2.0 beta) include the foundation for confirming user email addresses. The NuGet package "Microsoft Asp.…

c# asp.net-mvc asp.net-identity
Configure Unity DI for ASP.NET Identity

I'm using Unity successfully for all regular constructor injection such as repositories etc., but I can't get it working with …

c# asp.net dependency-injection unity-container asp.net-identity
UseOAuthBearerTokens vs UseOAuthBearerAuthentication

In our Startup class, I have configured the following auth server options: OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions() { AllowInsecureHttp = true, TokenEndpointPath = new …

asp.net-identity asp.net-web-api2 owin asp.net-identity-2 katana
ASP.NET Identity with Repository and Unit of Work

I'm learning Repository and Unit of Work patterns in ASP.NET MVC 5 application with Entity Framework 6. I had already read …

c# entity-framework repository-pattern asp.net-identity unit-of-work
Always receiving 'invalid_client' error when POSTing to /Token endpoint with ASP Identity 2

About a month ago I had a project working perfectly with ASP Identity OAuth. I'd send a POST request to …

c# asp.net asp.net-web-api asp.net-identity asp.net-web-api2
Asp.net Identity Validation Error

I want integrate IdentityContext with mydbcontext but i am taking this error One or more validation errors were detected during …

asp.net-mvc-5 asp.net-identity
Getting the email from external providers Google and Facebook during account association step in a default MVC5 app

Apparently you can do this with the Facebook provider by adding scopes to the FacebookAuthenticationOptions object in Startup.Auth.cs: …

asp.net-mvc-5 asp.net-identity asp.net-identity-2