Skip to content

Commit 1b3b260

Browse files
committed
Found another reference to the old introspection library
1 parent af22053 commit 1b3b260

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/content/docs/identityserver/apis/aspnetcore/reference.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ redirect_from:
1111
- /identityserver/v7/apis/aspnetcore/reference/
1212
---
1313

14-
If you are using [reference tokens](/identityserver/tokens/reference), you need an authentication handler that
14+
If you are using [reference tokens](/identityserver/tokens/reference.md), you need an authentication handler that
1515
implements the back-channel validation via the [OAuth 2.0 token introspection](https://tools.ietf.org/html/rfc7662)
16-
protocol, e.g. [this](https://github.com/IdentityModel/IdentityModel.AspNetCore.OAuth2Introspection) one:
16+
protocol, e.g. [Duende.AspNetCore.Authentication.OAuth2Introspection](/introspection-auth-handler/index.mdx):
1717

18-
```cs
18+
```csharp
19+
// Program.cs
1920
builder.Services.AddAuthentication("token")
2021
.AddOAuth2Introspection("token", options =>
2122
{
@@ -32,7 +33,8 @@ builder.Services.AddAuthentication("token")
3233
It is not uncommon to use the same API with both JWTs and reference tokens. In this case you set up two authentication
3334
handlers, make one the default handler and provide some forwarding logic, e.g.:
3435

35-
```cs
36+
```csharp
37+
// Program.cs
3638
builder.Services.AddAuthentication("token")
3739

3840
// JWT tokens
@@ -59,7 +61,8 @@ builder.Services.AddAuthentication("token")
5961

6062
The logic of the forward selector looks like this:
6163

62-
```cs
64+
```csharp
65+
// IntrospectionUtilities.cs
6366
/// <summary>
6467
/// Provides a forwarding func for JWT vs reference tokens (based on existence of dot in token)
6568
/// </summary>

0 commit comments

Comments
 (0)