简体   繁体   中英

Why round trip to introspection point on each call?

I am seeing for each protected API call, a call to the introspection endpoint of identity server. Can I stop this from happening?

We have a React application that uses implicit flow. When the application receives the access token it is then used to make calls to another Web API with the access token. What we noticed is the introspection endpoint is called on each call.

I thought JWT tokens do not need to be validated against the issuer each time a call is made.

I have the following app setup:

services.AddAuthentication("Bearer")
                .AddIdentityServerAuthentication(options =>
                {
                    options.Authority = identityServiceUri;
                    options.ApiName = "SMAppServices";
                    options.RequireHttpsMetadata = false;
                });

You have probably set the access token type to reference type. You can check this in the client configuration in the IdentityServer. There is a property called AccessTokenType in the Client class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM