How to correctly use the introspection endpoint with identity server 4?

前端 未结 3 623
遇见更好的自我
遇见更好的自我 2021-02-01 05:23

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



        
3条回答
  •  囚心锁ツ
    2021-02-01 05:54

    Introspection is typically used by APIs to validate an incoming token. Also the introspection endpoint requires authentication per spec.

    You need to setup an API secret:

    https://identityserver4.readthedocs.io/en/latest/reference/api_resource.html

    And then use the api name/secret to authenticate against the introspection endpoint. Either using Basic authentication or posting the values in the form.

提交回复
热议问题