WilliamXu96 / ABP-MicroService

基于abp微服务架构的低代码平台
1.09k stars 329 forks source link

在linux使用域名环境登入会出现未授权。本地window调试正常 #51

Open susubolin opened 2 years ago

susubolin commented 2 years ago

部分basic-service日志信息如下 Failed to validate the token. Microsoft.IdentityModel.Tokens.SecurityTokenInvalidIssuerException: IDX10205: Issuer validation failed. Issuer: 'System.String'. Did not match: validationParameters.ValidIssuer: 'System.String' or validationParameters.ValidIssuers: 'System.String'. at Microsoft.IdentityModel.Tokens.Validators.ValidateIssuer(String issuer, SecurityToken securityToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateIssuer(String issuer, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() [03:12:21 INF] Bearer was not authenticated. Failure message: IDX10205: Issuer validation failed. Issuer: 'System.String'. Did not match: validationParameters.ValidIssuer: 'System.String' or validationParameters.ValidIssuers: 'System.String'.

WilliamXu96 commented 2 years ago

BaseService的Authority配置使用AuthServer发布地址,可以参考发布教程视频:https://www.bilibili.com/video/BV1si4y117Zd @zhuoq520

susubolin commented 2 years ago

您好,邮件已收到。我将尽快给您回复。谢谢!