Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions pingone-customers-sample-oidc/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "9.0.0",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public static IServiceCollection AddPingOneAuthentication(
options.SaveTokens = true;
options.ResponseType = configuration.ResponseType;

// NOTE: the following is required to work around the error: 'InvalidOperationException: Invalid response from pushed authorization: content type is not application/json.'
// See: https://support.pingidentity.com/s/question/0D5UJ00000y5g4P0AQ/failure-with-oidc-using-aspnet-because-of-content-type
options.PushedAuthorizationBehavior = PushedAuthorizationBehavior.Disable;

options.Scope.Clear();
foreach (var scope in configuration.Scopes)
{
Expand All @@ -51,6 +55,7 @@ public static IServiceCollection AddPingOneAuthentication(
context.ProtocolMessage.PostLogoutRedirectUri = configuration.PostSignOffRedirectUrl;
return Task.FromResult(0);
},

};
});

Expand Down
10 changes: 5 additions & 5 deletions pingone-netcore-sdk/PingOne.Core/PingOne.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.11" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.11" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
</ItemGroup>

</Project>