Skip to content

Commit

Permalink
IDP-418 Workleap rebranding (#23)
Browse files Browse the repository at this point in the history
* Rebranding from gsoft to workleap

* Rewmoved changes that shouldn't have sneaked in

* Changed nuget api key
  • Loading branch information
Gcaya authored Aug 11, 2023
1 parent 81c7a74 commit adf793b
Show file tree
Hide file tree
Showing 53 changed files with 112 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
shell: pwsh
env:
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }}
NUGET_API_KEY: ${{ secrets.GSOFTINC_NUGET_API_KEY }}
NUGET_API_KEY: ${{ secrets.WORKLEAP_NUGET_API_KEY }}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GSoft.Authentication.ClientCredentialsGrant
# Workleap.Authentication.ClientCredentialsGrant

| Description | Download link | Build status |
|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Client-side library for any .NET application | [![nuget](https://img.shields.io/nuget/v/GSoft.Extensions.Http.Authentication.ClientCredentialsGrant.svg?logo=nuget)](https://www.nuget.org/packages/GSoft.Extensions.Http.Authentication.ClientCredentialsGrant/) | [![build](https://img.shields.io/github/actions/workflow/status/gsoft-inc/gsoft-authentication-clientcredentialsgrant/publish.yml?logo=github&branch=main)](https://github.com/gsoft-inc/gsoft-authentication-clientcredentialsgrant/actions/workflows/publish.yml) |
| Server-side library for ASP.NET Core web applications | [![nuget](https://img.shields.io/nuget/v/GSoft.AspNetCore.Authentication.ClientCredentialsGrant.svg?logo=nuget)](https://www.nuget.org/packages/GSoft.AspNetCore.Authentication.ClientCredentialsGrant/) | [![build](https://img.shields.io/github/actions/workflow/status/gsoft-inc/gsoft-authentication-clientcredentialsgrant/publish.yml?logo=github&branch=main)](https://github.com/gsoft-inc/gsoft-authentication-clientcredentialsgrant/actions/workflows/publish.yml) |
| Description | Download link | Build status |
|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Client-side library for any .NET application | [![nuget](https://img.shields.io/nuget/v/Workleap.Extensions.Http.Authentication.ClientCredentialsGrant.svg?logo=nuget)](https://www.nuget.org/packages/Workleap.Extensions.Http.Authentication.ClientCredentialsGrant/) | [![build](https://img.shields.io/github/actions/workflow/status/gsoft-inc/wl-authentication-clientcredentialsgrant/publish.yml?logo=github&branch=main)](https://github.com/gsoft-inc/wl-authentication-clientcredentialsgrant/actions/workflows/publish.yml) |
| Server-side library for ASP.NET Core web applications | [![nuget](https://img.shields.io/nuget/v/Workleap.AspNetCore.Authentication.ClientCredentialsGrant.svg?logo=nuget)](https://www.nuget.org/packages/Workleap.AspNetCore.Authentication.ClientCredentialsGrant/) | [![build](https://img.shields.io/github/actions/workflow/status/gsoft-inc/wl-authentication-clientcredentialsgrant/publish.yml?logo=github&branch=main)](https://github.com/gsoft-inc/wl-authentication-clientcredentialsgrant/actions/workflows/publish.yml) |

This set of two libraries enables **authenticated machine-to-machine HTTP communication** between a .NET application and an ASP.NET Core web application.
HTTP requests are authenticated with JSON web tokens (JWT) **issued by an OAuth 2.0 authorization server** using [the client credentials grant flow](https://www.rfc-editor.org/rfc/rfc6749#section-4.4).
Expand Down Expand Up @@ -47,7 +47,7 @@ The **server-side library** includes:

### Client-side library

Install the package [GSoft.Extensions.Http.Authentication.ClientCredentialsGrant](https://www.nuget.org/packages/GSoft.Extensions.Http.Authentication.ClientCredentialsGrant/) in your client-side application
Install the package [Workleap.Extensions.Http.Authentication.ClientCredentialsGrant](https://www.nuget.org/packages/Workleap.Extensions.Http.Authentication.ClientCredentialsGrant/) in your client-side application
that needs to communicate with the protected ASP.NET Core server. Then, use one of the following methods to configure an authenticated `HttpClient`:

```csharp
Expand Down Expand Up @@ -110,7 +110,7 @@ _This client-side library is based on [Duende.AccessTokenManagement](https://git

### Server-side library

Install the package [GSoft.AspNetCore.Authentication.ClientCredentialsGrant](https://www.nuget.org/packages/GSoft.AspNetCore.Authentication.ClientCredentialsGrant/) in your server-side ASP.NET Core application and register the authentication services:
Install the package [Workleap.AspNetCore.Authentication.ClientCredentialsGrant](https://www.nuget.org/packages/Workleap.AspNetCore.Authentication.ClientCredentialsGrant/) in your server-side ASP.NET Core application and register the authentication services:

```csharp
// Registers Microsoft's JwtBearer handler with a default "ClientCredentials" authentication scheme.
Expand Down Expand Up @@ -175,4 +175,4 @@ When you are ready to **officially release** a stable NuGet package by following

## License

Copyright © 2023, GSoft Group Inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.
Copyright © 2023, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.
8 changes: 4 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<Copyright>Copyright © GSoft Group Inc. $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<Authors>GSoft Group Inc.</Authors>
<Owners>GSoft Group Inc.</Owners>
<PackageProjectUrl>https://github.com/gsoft-inc/gsoft-authentication-clientcredentialsgrant</PackageProjectUrl>
<Copyright>Copyright © Workleap $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright>
<Authors>Workleap</Authors>
<Owners>Workleap</Owners>
<PackageProjectUrl>https://github.com/gsoft-inc/wl-authentication-clientcredentialsgrant</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<LangVersion>10</LangVersion>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Options;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;

// ReSharper disable once CheckNamespace
namespace Microsoft.AspNetCore.Authorization;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
namespace Workleap.AspNetCore.Authentication.ClientCredentialsGrant;

public static class ClientCredentialsDefaults
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Options;

namespace GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
namespace Workleap.AspNetCore.Authentication.ClientCredentialsGrant;

internal class JwtBearerOptionsValidator : IValidateOptions<JwtBearerOptions>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#nullable enable
const GSoft.AspNetCore.Authentication.ClientCredentialsGrant.ClientCredentialsDefaults.AuthenticationScheme = "ClientCredentials" -> string!
GSoft.AspNetCore.Authentication.ClientCredentialsGrant.ClientCredentialsDefaults
const Workleap.AspNetCore.Authentication.ClientCredentialsGrant.ClientCredentialsDefaults.AuthenticationScheme = "ClientCredentials" -> string!
Workleap.AspNetCore.Authentication.ClientCredentialsGrant.ClientCredentialsDefaults
Microsoft.AspNetCore.Authorization.ClientCredentialsAuthorizeAttribute
Microsoft.AspNetCore.Authorization.ClientCredentialsAuthorizeAttribute.ClientCredentialsAuthorizeAttribute(Microsoft.AspNetCore.Authorization.ClientCredentialsScope scope) -> void
Microsoft.AspNetCore.Authorization.ClientCredentialsAuthorizeAttribute.Scope.get -> Microsoft.AspNetCore.Authorization.ClientCredentialsScope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReadmeFile>README.md</PackageReadmeFile>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../GSoft.Authentication.ClientCredentialsGrant.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>../Workleap.Authentication.ClientCredentialsGrant.snk</AssemblyOriginatorKeyFile>
<Description>Server-side implementation of authenticated machine-to-machine communication using access token for ASP.NET Core.</Description>
</PropertyGroup>

Expand All @@ -25,7 +25,7 @@

<ItemGroup>
<!-- Exposes internal symbols to test projects and mocking libraries -->
<InternalsVisibleTo Include="GSoft.Authentication.ClientCredentialsGrant.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010025301ce547647ab5ac9264ade0f9cdc0252796a257095add4791b0232c1def21bb9e0c87d218713f918565b23394362dbcb058e210c853a24ec33e6925ebedf654a0d65efb3828c855ff21eaaa67aeb9b24b81b8baff582a03df6ab04424c7e53cacbfe84d2765ce840389f900c55824d037d2c5b6b330ac0188a06ef6869dba" />
<InternalsVisibleTo Include="Workleap.Authentication.ClientCredentialsGrant.Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010025301ce547647ab5ac9264ade0f9cdc0252796a257095add4791b0232c1def21bb9e0c87d218713f918565b23394362dbcb058e210c853a24ec33e6925ebedf654a0d65efb3828c855ff21eaaa67aeb9b24b81b8baff582a03df6ab04424c7e53cacbfe84d2765ce840389f900c55824d037d2c5b6b330ac0188a06ef6869dba" />
<InternalsVisibleTo Include="DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class AuthenticationBuilderExtensionsTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Authorization.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class AuthorizationExtensionsTest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections;
using Microsoft.AspNetCore.Authorization;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class ClientCredentialsAuthorizeAttributeTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using GSoft.Extensions.Http.Authentication.ClientCredentialsGrant;
using Workleap.Extensions.Http.Authentication.ClientCredentialsGrant;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class ClientCredentialsOptionsTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Concurrent;
using System.Text.Json;
using FakeItEasy;
using GSoft.Extensions.Http.Authentication.ClientCredentialsGrant;
using Workleap.Extensions.Http.Authentication.ClientCredentialsGrant;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

// Inspired from Microsoft.Identity.Web caching tests:
// https://github.com/AzureAD/microsoft-identity-web/blob/2.9.0/tests/Microsoft.Identity.Web.Test/L1L2CacheTests.cs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Net;
using FakeItEasy;
using GSoft.Extensions.Http.Authentication.ClientCredentialsGrant;
using Workleap.Extensions.Http.Authentication.ClientCredentialsGrant;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public sealed class ClientCredentialsTokenHttpMessageHandlerTests : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Globalization;
using System.Security.Cryptography;
using FakeItEasy;
using GSoft.Extensions.Http.Authentication.ClientCredentialsGrant;
using Workleap.Extensions.Http.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.DataProtection;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class ClientCredentialsTokenSerializerTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using GSoft.Extensions.Http.Authentication.ClientCredentialsGrant;
using Workleap.Extensions.Http.Authentication.ClientCredentialsGrant;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Http;
using Microsoft.Extensions.Http.Logging;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class HttpClientBuilderExtensionsTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Net;
using Duende.IdentityServer.Models;
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using GSoft.Extensions.Http.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.Extensions.Http.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
Expand All @@ -12,7 +12,7 @@
using Microsoft.Extensions.Logging;
using Secret = Duende.IdentityServer.Models.Secret;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class IntegrationTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using GSoft.AspNetCore.Authentication.ClientCredentialsGrant;
using Workleap.AspNetCore.Authentication.ClientCredentialsGrant;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace GSoft.Authentication.ClientCredentialsGrant.Tests;
namespace Workleap.Authentication.ClientCredentialsGrant.Tests;

public class JwtBearerOptionsTests
{
Expand Down
Loading

0 comments on commit adf793b

Please sign in to comment.