Skip to content

Commit

Permalink
Move AccessTokenManagement to own folder.
Browse files Browse the repository at this point in the history
Preperation for importing other projects.
  • Loading branch information
damianh committed Oct 5, 2024
1 parent 29bef25 commit 0c478f5
Show file tree
Hide file tree
Showing 257 changed files with 68 additions and 62 deletions.
File renamed without changes.
File renamed without changes.
30 changes: 8 additions & 22 deletions README.md
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.
25 changes: 25 additions & 0 deletions access-token-management/README.md
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.
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.
2 changes: 0 additions & 2 deletions build.cmd

This file was deleted.

3 changes: 0 additions & 3 deletions build.sh

This file was deleted.

0 comments on commit 0c478f5

Please sign in to comment.