diff --git a/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGateway.Host.csproj b/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGateway.Host.csproj index 69621032..15f4fc63 100644 --- a/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGateway.Host.csproj +++ b/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGateway.Host.csproj @@ -6,7 +6,6 @@ - diff --git a/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGatewayHostModule.cs b/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGatewayHostModule.cs index c7962228..ab1cba2d 100644 --- a/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGatewayHostModule.cs +++ b/Gateways/WebAppGateway/WebAppGateway.Host/WebAppGatewayHostModule.cs @@ -24,7 +24,7 @@ namespace WebAppGateway typeof(AbpAutofacModule), typeof(AbpAspNetCoreSerilogModule) )] - public class WebAppGatewayHostModule: AbpModule + public class WebAppGatewayHostModule : AbpModule { private const string DefaultCorsPolicyName = "Default"; @@ -67,11 +67,11 @@ public override void OnApplicationInitialization(ApplicationInitializationContex private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration) { context.Services.AddAuthentication("Bearer") - .AddIdentityServerAuthentication(options => + .AddJwtBearer(options => { options.Authority = configuration["AuthServer:Authority"]; options.RequireHttpsMetadata = false; - options.ApiName = "WebAppGateway"; + options.Audience = "WebAppGateway"; }); }