-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move AccessTokenManagement to own folder.
Preperation for importing other projects.
- Loading branch information
Showing
257 changed files
with
68 additions
and
62 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
## 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. | ||
# Duende Free and Open Source Software | ||
This is the repository that contain Duende's Free and Open Source Sofware. | ||
|
||
## 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). | ||
- [Duende.AccessTokenManagement](/access-token-management/) .NET libraries that manage OAuth and OpenId Connect access tokens. | ||
|
||
## 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! | ||
Deuende FOSS projects are released as open source under the | ||
[Apache 2.0 license](/LICENSE). | ||
[Bug reports, feature requests](https://github.com/DuendeSoftware/foss/issues) and | ||
[contributions](https://github.com/DuendeSoftware/foss/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! |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## 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. | ||
|
||
## 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! |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0
samples/Worker/Program.cs → ...oken-management/samples/Worker/Program.cs
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
70 changes: 35 additions & 35 deletions
70
...lientCredentialsTokenManagementBuilder.cs → ...lientCredentialsTokenManagementBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | ||
|
||
using System; | ||
using Duende.AccessTokenManagement; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection; | ||
|
||
/// <summary> | ||
/// Builder for client credential clients | ||
/// </summary> | ||
public class ClientCredentialsTokenManagementBuilder | ||
{ | ||
private readonly IServiceCollection _services; | ||
|
||
/// <summary> | ||
/// ctor | ||
/// </summary> | ||
/// <param name="services"></param> | ||
public ClientCredentialsTokenManagementBuilder(IServiceCollection services) | ||
{ | ||
_services = services; | ||
} | ||
|
||
/// <summary> | ||
/// Adds a client credentials client to the token management system | ||
/// </summary> | ||
/// <param name="name"></param> | ||
/// <param name="configureOptions"></param> | ||
/// <returns></returns> | ||
public ClientCredentialsTokenManagementBuilder AddClient(string name, Action<ClientCredentialsClient> configureOptions) | ||
{ | ||
_services.Configure(name, configureOptions); | ||
return this; | ||
} | ||
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | ||
|
||
using System; | ||
using Duende.AccessTokenManagement; | ||
|
||
namespace Microsoft.Extensions.DependencyInjection; | ||
|
||
/// <summary> | ||
/// Builder for client credential clients | ||
/// </summary> | ||
public class ClientCredentialsTokenManagementBuilder | ||
{ | ||
private readonly IServiceCollection _services; | ||
|
||
/// <summary> | ||
/// ctor | ||
/// </summary> | ||
/// <param name="services"></param> | ||
public ClientCredentialsTokenManagementBuilder(IServiceCollection services) | ||
{ | ||
_services = services; | ||
} | ||
|
||
/// <summary> | ||
/// Adds a client credentials client to the token management system | ||
/// </summary> | ||
/// <param name="name"></param> | ||
/// <param name="configureOptions"></param> | ||
/// <returns></returns> | ||
public ClientCredentialsTokenManagementBuilder AddClient(string name, Action<ClientCredentialsClient> configureOptions) | ||
{ | ||
_services.Configure(name, configureOptions); | ||
return this; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.