Skip to main content

All Questions

3 votes
1 answer
4k views

Infinite login redirect loop with Google and ASP.NET Core Identity

I've hit a redirect loop when trying to access a page behind an Authorize attribute in Net Core 3 no matter whether I am signed in or if the user has permissions. I've followed the MSDN tutorials and ...
Exho's user avatar
  • 123
3 votes
1 answer
1k views

How to change JWT timeout for dotnet core SPA (Angular) with Identity Server

I'm using dotnet core 3, and trying to set the JWT expire time, and can't find where to do so. I know it can be done where the JWT token is created, but that's happening in one of Microsoft's ...
Scott Reece's user avatar
5 votes
2 answers
6k views

How can I fix email confirmation - in .NET Core, it doesn't work

I already have a register action public async Task<IActionResult> OnPostAsync(string returnUrl = null) { var useremail = _userManager.Users.FirstOrDefault(u => u.Email.ToLower() ...
Omar Khaled's user avatar
0 votes
2 answers
332 views

Core3/React confirmation email not sent

This question applies to a core3/react project with an external identity provider, created as follows. dotnet new react --auth Individual --use-local-db --output conf and modified to support an ...
Peter Wone's user avatar
  • 18.4k
2 votes
1 answer
1k views

asp.net core 3 AuthorizeAttribute or manage page always asks to login

OSX ASP.Net Core 3 MVC command line build.. The app allows the user to log in normally and seems to work fine. When I add @if (SignInManager.IsSignedIn(User)) { to the cshtml file for the View (...
Robert Achmann's user avatar
3 votes
2 answers
4k views

Core 3 : No code generator found with the name 'identity'

dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.0.100 Commit: 04339c3a26 Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: ...
Robert Achmann's user avatar
4 votes
1 answer
2k views

Problems with using external login and sending confirmation mail in asp.NET core identity

I am trying to set up a web app with authentication via a google API, using the docs from microsoft. My ConfigureServices looks like this: public void ConfigureServices(IServiceCollection ...
wserr's user avatar
  • 456
0 votes
1 answer
266 views

Retrieve custom profile data from IdentityUser list with linq

ASP.Net Core 3 MVC web application with Identity My DB context is public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext>...
Robert Achmann's user avatar
0 votes
1 answer
331 views

ASP.NET Core 3.0 - Identity Customization Issue

I have customized Identity in ASP.NET Core 3.0 project as this link documentation https://learn.microsoft.com/en-us/aspnet/core/security/authentication/customize-identity-model?view=aspnetcore-3.0 it ...
Walid Moheyeldin's user avatar
0 votes
0 answers
128 views

Using tag helpers with scaffolded Identity area in Asp.Net Core 3 Web App [duplicate]

Porting an older website to Core 3.0 and having some trouble with the new scaffolded Identity area and my anchor tags pointing to pages within that area. The old MVC code for example <li> &...
dinotom's user avatar
  • 5,122
0 votes
1 answer
268 views

Using Identity.UI in WebAPI project

I'm pretty new to Asp.NET and would like some more information on how to proceed. I have a standard WebAPI project which contains the standard weather template - I'm trying to apply some ...
A.A's user avatar
  • 783
4 votes
1 answer
549 views

Keeping login/registration in JS, not razor views when scaffolding Core 3 project with Angular

Also happens with react and scaffolding a new project in VS. Any login/registration uses razor layout/views and everything else uses angulars. New to angular, but having 2 versions of a sites layout ...
VirtualLife's user avatar
1 vote
1 answer
1k views

Sharing the Identity Login Cookie across subdomains

I am currently working on a ASP.Net Core 3 pre-release 9 MVC Web app. I try to login into my Web App with the same Cookie. Currently my Startup.cs the ConfigureServices method looks something like ...
Twenty's user avatar
  • 5,672
1 vote
1 answer
328 views

Seeding database via middleware pipeline throws an exception asp.net core

I have 3 layers in my solution. The Core, BLL, and DAL layers. All are class libraries with the exception of the Core layer which is a web API layer. The DAL layer has the context, seeder, migrations, ...
Raj Narayanan's user avatar
2 votes
0 answers
373 views

Multiple Authentication types in ASP.NET Core 3

For Web Users, I am doing Cookie based authentication and for IOT devices, JWT Auth. But I also have several APIs which are used by BOTH Web and IOT users. If a Cookie exists, I am expecting it to ...
user1880957's user avatar
  • 1,216

15 30 50 per page