Skip to content

Commit 0245314

Browse files
committed
Address PR feedback
1 parent 9897fba commit 0245314

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/content/docs/identitymodel/endpoints/introspection.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ The following code sends a reference token to an introspection endpoint:
3131
Address = Endpoint,
3232
ClientId = "client",
3333
ClientSecret = "secret",
34-
ResponseFormat = ResponseFormat.Jwt,
34+
ResponseFormat = ResponseFormat.Json,
3535
3636
// Optional
37-
JwtResponseValidator = new CustomIntrospectionJwtResponseValidator()
37+
// JwtResponseValidator = new CustomIntrospectionJwtResponseValidator()
3838
};
3939
4040
var httpClient = new HttpClient()
@@ -65,8 +65,8 @@ var introspectionResponse = await client.IntrospectTokenAsync(new TokenIntrospec
6565

6666
## Token Introspection Response
6767

68-
The response is of type `TokenIntrospectionResponse`. Before using the response, you should always check the `IsError`
69-
property to make sure the request was successful:
68+
The response of a token introspection request is an object of type `TokenIntrospectionResponse`.
69+
Before using the response, you should always check the `IsError` property to make sure the request was successful:
7070

7171
```csharp
7272
if (introspectionResponse.IsError) throw new Exception(introspectionResponse.Error);
@@ -95,7 +95,8 @@ In addition, it provides access to the following standard response parameters:
9595

9696
## JWT Response Validation :badge[v7.1]
9797

98-
By default, **no** validation is performed on the incoming JWT response, it is only checked for valid JWT formatting.
98+
Most applications will not benefit from additional checks at runtime. By default, no validation is performed on the
99+
incoming JWT response, it is only checked for valid JWT formatting.
99100

100101
An extensibility point is available to provide your own implementation of `ITokenIntrospectionJwtResponseValidator` using the `TokenIntrospectionRequest.JwtResponseValidator` property or using `IntrospectionClientOptions`.
101102

0 commit comments

Comments
 (0)