Questions tagged [identityserver4]

OpenID Connect Provider and OAuth 2.0 Authorization Server Framework based on ASP.NET Core

IdentityServer4 is an OpenID Connect Provider and OAuth 2.0 Authorization Server Framework built on ASP.NET Core.

Allows for the implementation of single sign-on and access control for modern web applications and APIs using protocols such as OpenID Connect and OAuth2. It supports a wide range of clients like mobile, web, SPAs and desktop applications and is extensible to allow integration in new and existing architectures.

IdentityServer4 is officially certified by the OpenID Foundation and thus spec-compliant and interoperable. It is part of the .NET Foundation, and operates under their code of conduct. It is licensed under Apache 2 (an OSI approved license).

For the .NET 4.x, katana based version see Identity Server 3

5377 questions
2
votes
0 answers

IdentityServer and Microservices: Missing Sub Claims

I am having this error after logging from the identity server. InvalidOperationException: sub claim is missing IdentityServer4.Hosting.IdentityServerAuthenticationService.AssertRequiredClaims(ClaimsPrincipal principal) in…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
2
votes
1 answer

ASPNET Core OIDC Correlation Failed

I have looked at a bunch of similar issues on StackOverflow similar to this but none of the solutions have worked for me. This issue is driving me nuts! The main difference I have from many of the similar ones here is that I have only ONE server…
jpaull
  • 278
  • 1
  • 6
  • 17
2
votes
2 answers

Not able to connect from Windows Application to IdentityServer4 with SSL

I have a Windows application that is using the "password" grant type. It is able to authenticate to the Identityserver4 without SSL, but not with SSL. The problem is that it is giving an error: The underlying connection was closed: An unexpected…
The Eagle
  • 427
  • 1
  • 4
  • 13
2
votes
0 answers

“InvalidOperationException: Scheme already exists: Identity.Application”

I am trying to implement identityServer4 with Asp.netIdentity.Mongo with support for registration, 2fa and email confirmation. But i get “InvalidOperationException: Scheme already exists: Identity.Application” when I run the code. services …
Obed Amoasi
  • 1,837
  • 19
  • 27
2
votes
1 answer

IdentityServer 4 and TLS 1.2

I have disabled TLS 1.0 and TLS 1.1. in Identity Server (v4 running in a Service Fabric Cluster using WebHostBuilder, targeting .NET 4.6.2 using a self-signed cert). I have added the following in…
SturmUndDrang
  • 1,876
  • 5
  • 27
  • 47
2
votes
0 answers

identity server 4 and Ocelot integration With Docker

I am trying to integrate Ocelot API gateway with ID4. As per Ocelot documentation we can validate token with external id server https://whereyouridentityserverlives.com, Now, i'm integrating ID server and GateWay in same docker compose, gateway: …
Ankit Sarkar
  • 547
  • 1
  • 6
  • 20
2
votes
0 answers

Identity Server 4 IDP Auto-redirect to external provider

I need to auto-redirect my user to an idp if specified by the client. I am essentially checking in my AuthenticationController's Login method that if the IDP is set I redirect out to a different method on that controller which then calls the…
A Dyer
  • 113
  • 1
  • 6
2
votes
1 answer

IdentityServer4 and Web API in same project

I have an IdentityServer and a MVC-Client, IdentityServer has its own web API's to provide user management to its clients. MVC client uses HybridAndClientCredentials grant type to interact with IdentityServer. I have no problem with authenticating…
Saber Amani
  • 6,409
  • 12
  • 53
  • 88
2
votes
1 answer

InvalidOperationException when signing in to IdentityServer4 via oidc-client

I'm having some problems getting my authentication flow working between a Vue.js + ASP.NET Core 2.1 web app with IdentityServer4, seems I'm missing something very basic but not sure what. I want to have the following: REST APIs…
Gavin McKay
  • 63
  • 1
  • 5
2
votes
1 answer

IdentityServer4 ConfigurationDbContext not loading client secrets

I want to display a list of clients and their secrets in an admin-only page of an MVC app baked into my IdentityServer project that is using EntityFramework. I currently have a reference to ConfigurationDbContext in my controller from dependency…
w0f
  • 908
  • 9
  • 23
2
votes
1 answer

Can't get API resource using HttpClient

I'm using Identity Server4 and I have configured a web API project using ResourceOwnerPassword grant type. Web API method: [HttpGet] [Authorize(Roles = "Badmin")] [Route("GetUsers")] public IActionResult GetUsers() { List users…
2
votes
1 answer

IdentityServer4 - LogoutRequest.PostLogoutRedirectUri is null

I have an identity server project that I am working on that for some reason is setting the log out url as null. Using the "BuildLogoutViewModelAsync(logoutId)" function found in the QuickStart, this line is returning null, but in the log the…
Rodney Pannell
  • 330
  • 5
  • 16
2
votes
1 answer

Identity Server 4 multiple user resources

I want to authenticate users at Identity server 4. I want to create a single instance of identity server that handles requests from many different applications that have users at different databases. For example: App 1 -> users at database A App 2…
Reven
  • 609
  • 3
  • 9
  • 17
2
votes
1 answer

cannot find C# netcore controller

I have added a netcore controller in my existing IdentityServer4 project. Here is my code namespace IdentityServer4.Quickstart.UI { public class VersionController : Controller { IVersionService _repository; public…
user3097695
  • 1,152
  • 2
  • 16
  • 42
2
votes
1 answer

Invalid Audience Token Validation

I have a token tied to each request from the header. I want to be able to retrieve that token and validate it with the public key from the cert that I have. I am trying to make it so my endpoints get validated with my public key through identity…