Updated OpenIddict to v4 (#13830)
* Updated OpenIddict to v4 and when through the migration guide. (SetAuthorizationEndpointUris and SetTokenEndpointUris should not start with a leading / anymore) * Fixed issue where the old backoffice did not build * Fixed build * Fake a change - hopefully npm can see the file now? * try using npm install instead of npm ci * Another trial * remove build of old backoffice * Oops build new backoffice - not the old * rollback changes to static assets * Foreach csproj file instead. Fix for breaking change in dotnet sdk 7.0.200
This commit is contained in:
@@ -110,7 +110,10 @@ stages:
|
||||
}
|
||||
}
|
||||
|
||||
dotnet pack $(solution) --configuration $(buildConfiguration) --no-build --output $(Build.ArtifactStagingDirectory)/nupkg
|
||||
foreach($csproj in Get-ChildItem –Path "src/" -Recurse -Filter *.csproj)
|
||||
{
|
||||
dotnet pack $csproj --configuration $(buildConfiguration) --no-build --output $(Build.ArtifactStagingDirectory)/nupkg
|
||||
}
|
||||
- script: |
|
||||
sha="$(Build.SourceVersion)"
|
||||
sha=${sha:0:7}
|
||||
|
||||
@@ -59,8 +59,8 @@ public static class BackOfficeAuthBuilderExtensions
|
||||
{
|
||||
// Enable the authorization and token endpoints.
|
||||
options
|
||||
.SetAuthorizationEndpointUris(Controllers.Security.Paths.BackOfficeApiAuthorizationEndpoint)
|
||||
.SetTokenEndpointUris(Controllers.Security.Paths.BackOfficeApiTokenEndpoint);
|
||||
.SetAuthorizationEndpointUris(Controllers.Security.Paths.BackOfficeApiAuthorizationEndpoint.TrimStart('/'))
|
||||
.SetTokenEndpointUris(Controllers.Security.Paths.BackOfficeApiTokenEndpoint.TrimStart('/'));
|
||||
|
||||
// Enable authorization code flow with PKCE
|
||||
options
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.2" />
|
||||
<PackageReference Include="OpenIddict.AspNetCore" Version="3.1.1" />
|
||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="3.1.1" />
|
||||
<PackageReference Include="OpenIddict.AspNetCore" Version="4.0.0" />
|
||||
<PackageReference Include="OpenIddict.EntityFrameworkCore" Version="4.0.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="OpenIddict.Abstractions" Version="3.1.1" />
|
||||
<PackageReference Include="OpenIddict.Abstractions" Version="4.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user