Skip to main content

All Questions

13 votes
3 answers
19k views

ASP.NET Core 3.0 Identity Server 4 (4.0.0) SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'empty'

I keep getting the following error between postman and IdentityServer 4 Microsoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: 'empty'. ...
Zach Ioannou's user avatar
2 votes
1 answer
1k views

How do I set cookie to be secure .NET Core?

I've run into problems using Identity Server 4. It's the common problem that requires SameSite=None and secure cookies. While I managed to set SameSite to None, I didn't set cookies to be secure. I ...
private7's user avatar
  • 365
1 vote
0 answers
2k views

CORS Error: No 'Access-Control-Allow-Origin' header is present on the requested resource

I am using .Net Core 3. I have programmed an API being called by a SPA hosted in a .Net Core Web Project. For one POST action in the API, I get a CORS error in Chrome as well as Firefox while for ...
Muhammad Tauseef's user avatar
1 vote
1 answer
195 views

ASP.NET Core 3.0 SPA in an endless redirection loop

If I create a new project using aspnet core 3.0 SPA template, everything is okay. But when i copy the Api-Authorization folder to use the AuthorizeInterceptor, AuthorizeService and guard, For an ...
Bellash's user avatar
  • 8,044
3 votes
0 answers
3k views

Oauth2 with Postman and IdentityServer4

I'm trying to register authenticate with Postman on my Identity Server 4. It worked with .Net Code 2 but I recently updated to .Net Core 3 and did adaptations. I can open my login page, I can login ...
Bastien Vandamme's user avatar
0 votes
0 answers
1k views

Extending identityserver login flow with tenant selection page, how to get user claims on that page?

I have implemented a custom AuthorizeInteractionResponseGenerator to include the tenant selection page to login flow based on: IdentityServer4 custom AuthorizeInteractionResponseGenerator public ...
kalmistu's user avatar
38 votes
6 answers
37k views

I am getting "code challenge required" when using IdentityServer4

I am trying to redirect to IdentityServer for authorization, and getting "code challenge required" in redirect URL. An error message shows invalid_request with code challenge required, and also my ...
Shushan's user avatar
  • 383
0 votes
0 answers
79 views

Calling Authorized Route in Postman OK, but Unauthorized from Console Client App

Just fiddling around with IdentityServer4 in my .net core 3.1 project. Been following this quickstart :http://docs.identityserver.io/en/latest/quickstarts/1_client_credentials.html If I debug the ...
Nico's user avatar
  • 259
0 votes
1 answer
2k views

Keep a session active on the identityServer side while using SPA

We have 3 applications: admin site running IdentityServer, SPA, webapi with rest services. On the first one (with IdentityServer) we have some aditional admin ui. A requirement exists that the ...
Xitac's user avatar
  • 199
3 votes
2 answers
2k views

ASP .NET Core 3 + Identity Server issue with in-process and out-of-process hosting

We're currently trying to upload two ASP .NET Core 3 simple web applications. One is an IdentityServer4 application which generates tokens, while the other has some APIs endpoints, and relies on the ...
Guido Cardinali's user avatar
0 votes
0 answers
188 views

Broke view after migrating from .net core 2.2 to .net core 3.0

I migrated an asp.net core 2.2 mvc web app (with identityserver4) to asp.net core 3.0. Now the menu navigation bar does not display (ie Change pages, external login, two factor, change password etc) ...
001's user avatar
  • 64.5k
0 votes
0 answers
132 views

Why do I have to re-login everytime with this authentication process

I set-up an ASP.Net Core 3.0 webserver with the following configuration in Startup.cs: public void ConfigureServices(IServiceCollection services) { services.AddHttpContextAccessor(); ...
Bruno's user avatar
  • 4,615
6 votes
1 answer
8k views

Identity server does not redirect after sucessfull login

I am trying to set up IdentityServer4 with MVC client. Everything works fine until I want to add ASP Identity. When I added code to use SQL server and Identity, after sucessfull login Identity server ...
georgesolc's user avatar
0 votes
1 answer
761 views

How to secure endpoints on api resource based on client in identityserver

I have my own authorization server built on top identityserver4 where I want to secure all apis on a host. System is just a simple mimic of google developers or facebook developers where application ...
ibubi's user avatar
  • 2,499
14 votes
2 answers
11k views

AddJsonFormatters() missing after migration from .NET Core 2.2 to 3.0

I have a Net Core 2.2 Web Api that I protect with the integration of IdentityServer4. So I started from the tutorial of IDS4 to write the code and there I found the AddJsonFormatters(). I'm triyng to ...
Tonyc's user avatar
  • 729

15 30 50 per page