I'm using Identity Server 4 and I'm trying to use the introspection endpoint, but just by the docs I'm not getting it.
The docs just gives this example
POST /connect/introspect
Authorization: Basic xxxyyy
token=<token>
Now, why there is this basic authentication and what should be xxxyyy? I mean, there's no basic auth set in my app. I've just setup Identity Server 4 using ASP.NET Core as follows in the ConfigureServices
:
services.AddIdentityServer()
.AddTemporarySigningCredential()
.AddInMemoryApiResources(ApiResourceProvider.GetAllResources())
.AddAspNetIdentity<Usuario>();
and in Configure
app.UseIdentity();
app.UseIdentityServer();
Now I've tried just a POST to /connect/introspect with the body just token=<token>
, but it returned a 404.
I believe I really didn't get it.
How do we use the introspection endpoint with Identity Server 4 in ASP.NET Core?