Skip to content

Commit d16b1a2

Browse files
maartenbaErwinvandervalk
authored andcommitted
AccessTokenManagement updates
1 parent 8d71a5b commit d16b1a2

File tree

3 files changed

+44
-17
lines changed

3 files changed

+44
-17
lines changed

src/content/docs/accesstokenmanagement/index.mdx

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,54 @@ import { CardGrid, LinkCard } from "@astrojs/starlight/components";
1212

1313
The `Duende.AccessTokenManagement` library provides automatic access token management features for .NET worker and ASP.NET Core web applications:
1414

15-
- automatic acquisition and lifetime management of client credentials based access tokens for machine-to-machine communication
16-
- automatic access token lifetime management using a refresh token for API calls on-behalf of the currently logged-in user
15+
- automatic acquisition and lifetime management of client credentials based access tokens for machine-to-machine communication (using the `Duende.AccessTokenManagement` package)
16+
- automatic access token lifetime management using a refresh token for API calls on-behalf of the currently logged-in user (using the `Duende.AccessTokenManagement.OpenIdConnect` package)
1717
- revocation of access tokens
1818

19+
## Machine-to-machine token management
20+
1921
To get started, install the NuGet Package:
2022

2123
```bash
2224
dotnet add package Duende.AccessTokenManagement
2325
```
2426

27+
See [Service Workers and Background Tasks](/accesstokenmanagement/workers.md) for more information on how to get started.
28+
29+
<CardGrid>
30+
<LinkCard
31+
href="https://github.com/DuendeSoftware/foss/tree/main/access-token-management"
32+
title="GitHub Repository"
33+
description="View the source code for this library on GitHub."
34+
/>
35+
<LinkCard
36+
href="https://www.nuget.org/packages/Duende.AccessTokenManagement/"
37+
title="NuGet Package"
38+
description="View the package on NuGet.org."
39+
/>
40+
</CardGrid>
41+
42+
## User token management
43+
44+
To get started, install the NuGet Package:
45+
46+
```bash
47+
dotnet add package Duende.AccessTokenManagement.OpenIdConnect
48+
```
49+
50+
See [Web Applications](/accesstokenmanagement/web-apps.md) for more information on how to get started.
51+
2552
<CardGrid>
26-
<LinkCard
27-
href="https://github.com/DuendeSoftware/foss/tree/main/access-token-management"
28-
title="GitHub Repository"
29-
description="View the source code for this library on GitHub."
30-
/>
31-
<LinkCard
32-
href="https://www.nuget.org/packages/Duende.AccessTokenManagement/"
33-
title="NuGet Package"
34-
description="View the package on NuGet.org."
35-
/>
53+
<LinkCard
54+
href="https://github.com/DuendeSoftware/foss/tree/main/access-token-management"
55+
title="GitHub Repository"
56+
description="View the source code for this library on GitHub."
57+
/>
58+
<LinkCard
59+
href="https://www.nuget.org/packages/Duende.AccessTokenManagement.OpenIdConnect/"
60+
title="NuGet Package"
61+
description="View the package on NuGet.org."
62+
/>
3663
</CardGrid>
3764

3865
## License and Feedback

src/content/docs/accesstokenmanagement/web-apps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
title: Web Applications
2+
title: Web Applications
33
data: 2024-10-24
4-
description: Learn how to manage access tokens in web applications, including setup, configuration, and usage with HTTP clients
4+
description: Learn how to manage access tokens in web applications, including setup, configuration, and usage with HTTP clients.
55
sidebar:
66
label: Web Apps
77
order: 3
88
redirect_from:
99
- /foss/accesstokenmanagement/web_apps/
1010
---
1111

12-
The `Duende.AccessTokenManagement` library automates all the tasks around access token lifetime management for
12+
The `Duende.AccessTokenManagement.OpenIdConnect` library automates all the tasks around access token lifetime management for
1313
user-centric web applications.
1414

1515
To use this library, start by adding the library to your .NET projects.
1616

1717
```bash
18-
dotnet add package Duende.AccessTokenManagement
18+
dotnet add package Duende.AccessTokenManagement.OpenIdConnect
1919
```
2020

2121
While many of the details can be customized, by default the following is assumed:

src/content/docs/accesstokenmanagement/workers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Service Workers and Background Tasks
33
date: 2024-10-12
4-
description: Learn how to manage OAuth access tokens in worker applications and background tasks using Duende.AccessTokenManagement
4+
description: Learn how to manage OAuth access tokens in worker applications and background tasks using Duende.AccessTokenManagement.
55
sidebar:
66
label: Service Workers
77
order: 2

0 commit comments

Comments
 (0)