Sample for implementing JWT Response for OAuth Token Introspection support for IdentityServer4 and Duende IdentityServer with .NET core.
This repo contains an extension method for the IdentityServer builder object to register all the necessary services in DI, e.g.:
services.AddIdentityServerWithJwtIntrospection()
.AddSigningCredential(cert)
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddTestUsers(TestUsers.Users)
.AddInMemoryRelyingParties(Config.GetRelyingParties());
services.AddIdentityServerWithJwtIntrospection()
.AddSigningCredential(cert)
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiResources(Config.GetApiResources())
.AddInMemoryClients(Config.GetClients())
.AddTestUsers(TestUsers.Users)
.AddInMemoryRelyingParties(Config.GetRelyingParties());