Skip to content

Commit

Permalink
Fixed DI registration for PAR classes, preventing
Browse files Browse the repository at this point in the history
failures when calling PAR endpoint
  • Loading branch information
kirill-abblix committed Nov 28, 2024
2 parents 4ecaa6f + 20b455e commit 82db344
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Abblix.DependencyInjection/Abblix.DependencyInjection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<PackageReleaseNotes>For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases</PackageReleaseNotes>
<PackageIcon>Abblix.png</PackageIcon>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<PackageVersion>1.3.0.0</PackageVersion>
<AssemblyVersion>1.3.0.1</AssemblyVersion>
<FileVersion>1.3.0.1</FileVersion>
<PackageVersion>1.3.0.1</PackageVersion>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
Expand Down
6 changes: 3 additions & 3 deletions Abblix.Jwt/Abblix.Jwt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<PackageReleaseNotes>For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases</PackageReleaseNotes>
<PackageIcon>Abblix.png</PackageIcon>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<PackageVersion>1.3.0.0</PackageVersion>
<AssemblyVersion>1.3.0.1</AssemblyVersion>
<FileVersion>1.3.0.1</FileVersion>
<PackageVersion>1.3.0.1</PackageVersion>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
Expand Down
6 changes: 3 additions & 3 deletions Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<PackageReleaseNotes>For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases</PackageReleaseNotes>
<PackageIcon>Abblix.png</PackageIcon>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<PackageVersion>1.3.0.0</PackageVersion>
<AssemblyVersion>1.3.0.1</AssemblyVersion>
<FileVersion>1.3.0.1</FileVersion>
<PackageVersion>1.3.0.1</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions Abblix.Oidc.Server/Abblix.Oidc.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<PackageReleaseNotes>For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases</PackageReleaseNotes>
<PackageIcon>Abblix.png</PackageIcon>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<PackageVersion>1.3.0.0</PackageVersion>
<AssemblyVersion>1.3.0.1</AssemblyVersion>
<FileVersion>1.3.0.1</FileVersion>
<PackageVersion>1.3.0.1</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class PushedAuthorizationHandler : IPushedAuthorizationHandler
/// Initializes a new instance of the <see cref="PushedAuthorizationHandler"/> class with specified validator
/// and processor services.
/// </summary>
/// <param name="fetcher">э
/// An instance of <see cref="IAuthorizationRequestFetcher"/> used to retrieve request objects.</param>
/// <param name="validator">An instance of <see cref="IPushedAuthorizationRequestValidator"/> used for validating
/// pushed authorization requests.</param>
/// <param name="processor">An instance of <see cref="IPushedAuthorizationRequestProcessor"/> used for processing
Expand Down
5 changes: 2 additions & 3 deletions Abblix.Oidc.Server/Endpoints/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
// info@abblix.com

using Abblix.DependencyInjection;
using Abblix.Jwt;
using Abblix.Oidc.Server.Common.Configuration;
using Abblix.Oidc.Server.Common.Implementation;
using Abblix.Oidc.Server.Common.Interfaces;
Expand Down Expand Up @@ -140,9 +139,9 @@ public static IServiceCollection AddAuthorizationContextValidators(this IService
public static IServiceCollection AddPushedAuthorizationEndpoint(this IServiceCollection services)
{
return services
.AddScoped<IPushedAuthorizationHandler, PushedAuthorizationHandler>()
.AddScoped<IPushedAuthorizationRequestValidator, PushedAuthorizationRequestValidator>(
.AddScoped<IPushedAuthorizationHandler, PushedAuthorizationHandler>(
Dependency.Override<IAuthorizationRequestFetcher, Authorization.RequestFetching.RequestObjectFetchAdapter>())
.AddScoped<IPushedAuthorizationRequestValidator, PushedAuthorizationRequestValidator>()
.AddScoped<IPushedAuthorizationRequestProcessor, PushedAuthorizationRequestProcessor>();
}

Expand Down
6 changes: 3 additions & 3 deletions Abblix.Utils/Abblix.Utils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<PackageReleaseNotes>For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases</PackageReleaseNotes>
<PackageIcon>Abblix.png</PackageIcon>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<PackageVersion>1.3.0.0</PackageVersion>
<AssemblyVersion>1.3.0.1</AssemblyVersion>
<FileVersion>1.3.0.1</FileVersion>
<PackageVersion>1.3.0.1</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 82db344

Please sign in to comment.