Browse Source

http站点

master
wxd 1 year ago
parent
commit
1895db686d
  1. 6
      src/Shentun.WebPeis.Application/Users/UserAppService.cs
  2. 7
      src/Shentun.WebPeis.HttpApi.Host/WebPeisHttpApiHostModule.cs

6
src/Shentun.WebPeis.Application/Users/UserAppService.cs

@ -204,11 +204,13 @@ namespace Shentun.WebPeis.Users
protected virtual async Task<TokenResponse> RequestAuthServerLoginByPasswordAsync(HttpClient client, string username, string password)
{
var AdminUrl = _configuration.GetSection("Kestrel")
.GetSection("Endpoints").GetSection("Http")
.GetSection("Url").Value;
var request = new PasswordTokenRequest
{
Address = _configuration["AuthServer:Authority"] + "/connect/token",
Address = AdminUrl + "/connect/token",
//GrantType = "password",
//UserName = username,
//Password = password,

7
src/Shentun.WebPeis.HttpApi.Host/WebPeisHttpApiHostModule.cs

@ -182,7 +182,12 @@ public class WebPeisHttpApiHostModule : AbpModule
});
///½â³ýhttpsÏÞÖÆ
context.Services.AddOpenIddict()
.AddServer(option =>
{
option.UseAspNetCore().DisableTransportSecurityRequirement();
});
//Configure<OpenIddictServerAspNetCoreBuilder>(configure =>

Loading…
Cancel
Save