diff --git a/.gitignore b/.gitignore index 504f734..60e14c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# MacOS +.DS_Store + # Rider .idea diff --git a/Directory.Build.targets b/Directory.Build.targets index 2a984d5..a4ce6b9 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,9 +1,9 @@ - 8.0.3 + 8.0.1 8.0.0 7.1.2 - 7.0.5 + 7.0.6 diff --git a/README.md b/README.md index de736d2..61afeab 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,25 @@ -# Duende.AccessTokenManagement -Automatic access token management for machine to machine and user-centric OAuth and OIDC flows +## About Duende.AccessTokenManagement +This is the repository for a set of .NET libraries that manage OAuth and OpenId +Connect access tokens. These tools automatically acquire new tokens when old +tokens are about to expire, provide conveniences for using the current token +with HTTP clients, and can revoke tokens that are no longer needed. -[Documentation](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/wiki) +## Packages +The libraries in this repository are distributed as NuGet packages. + +- [Duende.AccessTokenManagement](https://www.nuget.org/packages/Duende.AccessTokenManagement) manages tokens acquired in machine-to-machine flows in +[.NET workers](https://learn.microsoft.com/en-us/dotnet/core/extensions/workers) and [ASP.NET Core worker services](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services). +- [Duende.AccessTokenManagement.OpenIdConnect](https://www.nuget.org/packages/Duende.AccessTokenManagement.OpenIdConnect) +manages tokens acquired in user-centric flows in [ASP.NET Core](https://dotnet.microsoft.com/en-us/apps/aspnet) +applications. + +## Documentation +Documentation is available [here](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/wiki). + +## License and Feedback +Duende.AccessTokenManagement is released as open source under the +[Apache 2.0 license](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/blob/main/LICENSE). +[Bug reports, feature requests](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/issues) and +[contributions](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/pulls) are welcome. +If you have an idea for a new feature or significant code change you'd like to propose, please start with a +GitHub issue so that we can discuss it. Thanks in advance! \ No newline at end of file diff --git a/samples/BlazorServer/BlazorServer.csproj b/samples/BlazorServer/BlazorServer.csproj index af7a6de..85527f6 100644 --- a/samples/BlazorServer/BlazorServer.csproj +++ b/samples/BlazorServer/BlazorServer.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/samples/Web/Web.csproj b/samples/Web/Web.csproj index 9ea917c..108410a 100644 --- a/samples/Web/Web.csproj +++ b/samples/Web/Web.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/samples/WebJarJwt/WebJarJwt.csproj b/samples/WebJarJwt/WebJarJwt.csproj index 1bf3b46..6faf19d 100644 --- a/samples/WebJarJwt/WebJarJwt.csproj +++ b/samples/WebJarJwt/WebJarJwt.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/samples/Worker/Worker.csproj b/samples/Worker/Worker.csproj index 82bd102..e945d77 100644 --- a/samples/Worker/Worker.csproj +++ b/samples/Worker/Worker.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/samples/WorkerDI/WorkerDI.csproj b/samples/WorkerDI/WorkerDI.csproj index 82bd102..7c0ae15 100644 --- a/samples/WorkerDI/WorkerDI.csproj +++ b/samples/WorkerDI/WorkerDI.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/Duende.AccessTokenManagement.OpenIdConnect/Duende.AccessTokenManagement.OpenIdConnect.csproj b/src/Duende.AccessTokenManagement.OpenIdConnect/Duende.AccessTokenManagement.OpenIdConnect.csproj index b2f063a..629aa96 100644 --- a/src/Duende.AccessTokenManagement.OpenIdConnect/Duende.AccessTokenManagement.OpenIdConnect.csproj +++ b/src/Duende.AccessTokenManagement.OpenIdConnect/Duende.AccessTokenManagement.OpenIdConnect.csproj @@ -4,11 +4,15 @@ net8.0 enable true - + README.md Duende.AccessTokenManagement.OpenIdConnect Automatic access token management for interactive OpenIdConnect-based ASP.NET Core applications + + + + diff --git a/src/Duende.AccessTokenManagement.OpenIdConnect/README.md b/src/Duende.AccessTokenManagement.OpenIdConnect/README.md new file mode 100644 index 0000000..5db49f0 --- /dev/null +++ b/src/Duende.AccessTokenManagement.OpenIdConnect/README.md @@ -0,0 +1,20 @@ +## About Duende.AccessTokenManagement.OpenIdConnect +Duende.AccessTokenManagement.OpenIdConnect is a .NET library that manages OpenId +Connect access tokens in [ASP.NET Core](https://dotnet.microsoft.com/en-us/apps/aspnet) +applications. It will acquire new tokens when old tokens are about to expire, provides conveniences to +automatically use the current token with HTTP clients, and can revoke refresh tokens that are no longer needed. + +## Documentation +Documentation is available [here](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/wiki/web-applications). + +## Related Packages +- Foundational library for claims-based identity, OAuth 2.0 and OpenId Connect: [IdentityModel](https://www.nuget.org/packages/IdentityModel) +- Token management for machine-to-machine workflows in .NET workers: [Duende.AccessTokenManagement](https://www.nuget.org/packages/Duende.AccessTokenManagement) + +## License and Feedback +Duende.AccessTokenManagement.OpenIdConnect is released as open source under the +[Apache 2.0 license](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/blob/main/LICENSE). +[Bug reports, feature requests](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/issues) and +[contributions](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/pulls) are welcome. +If you have an idea for a new feature or significant code change you'd like to propose, please start with a +GitHub issue so that we can discuss it. Thanks in advance! \ No newline at end of file diff --git a/src/Duende.AccessTokenManagement/Duende.AccessTokenManagement.csproj b/src/Duende.AccessTokenManagement/Duende.AccessTokenManagement.csproj index 08b512b..4daa21c 100644 --- a/src/Duende.AccessTokenManagement/Duende.AccessTokenManagement.csproj +++ b/src/Duende.AccessTokenManagement/Duende.AccessTokenManagement.csproj @@ -4,12 +4,15 @@ net8.0 enable true - + README.md Duende.AccessTokenManagement Automatic access token management for OAuth client credential flows - + + + + diff --git a/src/Duende.AccessTokenManagement/README.md b/src/Duende.AccessTokenManagement/README.md new file mode 100644 index 0000000..3b8b0e3 --- /dev/null +++ b/src/Duende.AccessTokenManagement/README.md @@ -0,0 +1,23 @@ +## About Duende.AccessTokenManagement +Duende.AccessTokenManagement is a .NET library that manages OAuth +access tokens in [.NET workers](https://learn.microsoft.com/en-us/dotnet/core/extensions/workers) +and [ASP.NET Core worker services](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services). +It will acquire new tokens when old tokens are about to expire and provides conveniences to +automatically use the current token with HTTP clients. + +## Documentation +Documentation is available [here](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/wiki). + +## Related Packages +- Foundational library for claims-based identity, OAuth 2.0 and OpenId Connect: [IdentityModel](https://www.nuget.org/packages/IdentityModel) +- Token management for user-centric flows in [ASP.NET Core](https://dotnet.microsoft.com/en-us/apps/aspnet) +applications: [Duende.AccessTokenManagement.OpenIdConnect](https://www.nuget.org/packages/Duende.AccessTokenManagement.OpenIdConnect) + +## License and Feedback +Duende.AccessTokenManagement is released as open source under the +[Apache 2.0 license](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/blob/main/LICENSE). +[Bug reports, feature requests](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/issues) and +[contributions](https://github.com/DuendeSoftware/Duende.AccessTokenManagement/pulls) are welcome. +If you have an idea for a new feature or significant code change you'd like to propose, please start with a +GitHub issue so that we can discuss it. Thanks in advance! + diff --git a/test/Tests/Tests.csproj b/test/Tests/Tests.csproj index cb8b7a7..18d1fba 100644 --- a/test/Tests/Tests.csproj +++ b/test/Tests/Tests.csproj @@ -17,8 +17,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -29,7 +29,18 @@ + + + + + + + + +