Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 44f57b0

Browse files
Update README.md
1 parent 9e9e5be commit 44f57b0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# IdentityModel.AspNetCore.OAuth2Introspection
22

3-
ASP.NET Core authentication middleware using OAuth 2.0 token introspection
3+
ASP.NET Core 2 authentication for OAuth 2.0 token introspection
44

55
https://tools.ietf.org/html/rfc7662
6+
7+
## Configuration
8+
9+
```csharp
10+
services.AddAuthentication(OAuth2IntrospectionDefaults.AuthenticationScheme)
11+
.AddOAuth2Introspection(options =>
12+
{
13+
options.Authority = "https://base_address_of_token_service";
14+
15+
options.ClientId = "client_id_for_introspection_endpoint";
16+
options.ClientSecret = "client_secret_for_introspection_endpoint";
17+
});
18+
```

0 commit comments

Comments
 (0)