Updated mooncore.extended. Adjusted authentication config to support multiple schemes
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="MoonCore" Version="1.8.4" />
|
||||
<PackageReference Include="MoonCore.Extended" Version="1.3.0" />
|
||||
<PackageReference Include="MoonCore.Extended" Version="1.3.1" />
|
||||
<PackageReference Include="MoonCore.PluginFramework" Version="1.0.5" />
|
||||
<PackageReference Include="SharpZipLib" Version="1.4.2" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0"/>
|
||||
@@ -47,9 +47,4 @@
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_ContentIncludedByDefault Remove="Http\Controllers\OAuth2\Pages\Login.razor" />
|
||||
<_ContentIncludedByDefault Remove="Http\Controllers\OAuth2\Pages\Register.razor" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -505,8 +505,8 @@ public class Startup
|
||||
private Task RegisterAuth()
|
||||
{
|
||||
WebApplicationBuilder.Services
|
||||
.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
|
||||
.AddJwtBearer(options =>
|
||||
.AddAuthentication("userAuthentication")
|
||||
.AddJwtBearer("userAuthentication",options =>
|
||||
{
|
||||
options.TokenValidationParameters = new()
|
||||
{
|
||||
@@ -523,7 +523,7 @@ public class Startup
|
||||
};
|
||||
});
|
||||
|
||||
WebApplicationBuilder.Services.AddJwtInvalidation(options =>
|
||||
WebApplicationBuilder.Services.AddJwtInvalidation("userAuthentication",options =>
|
||||
{
|
||||
options.InvalidateTimeProvider = async (provider, principal) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user