diff --git a/IRaCIS.Core.Application/Service/MinimalApiService/OAuthService.cs b/IRaCIS.Core.Application/Service/MinimalApiService/OAuthService.cs index 64474a760..21700e1d7 100644 --- a/IRaCIS.Core.Application/Service/MinimalApiService/OAuthService.cs +++ b/IRaCIS.Core.Application/Service/MinimalApiService/OAuthService.cs @@ -2,8 +2,10 @@ using IdentityModel; using IdentityModel.Client; using IRaCIS.Core.Application.Service.OAuth; +using MassTransit; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NPOI.SS.Formula.Functions; @@ -208,12 +210,16 @@ namespace IRaCIS.Core.Application.Service Console.WriteLine(tokenResponse); //结束回话 + var parameters = new Parameters(); - var endUrl = new RequestUrl(disco.EndSessionEndpoint).CreateEndSessionUrl(tokenResponse.IdToken, "http://localhost:6100/OAuth/TestPCKEOrgin"); + parameters.Add("clientId", "aj34vqrpvz8olsbxwtcog"); + var endUrl = new RequestUrl(disco.EndSessionEndpoint).CreateEndSessionUrl(tokenResponse.IdToken, "http://localhost:6100/OAuth/TestPCKEOrgin", extra: parameters); - var _endHttpClient = new HttpClient(); + + Results.Redirect(endUrl); + //var _endHttpClient = new HttpClient(); - var dd = await _endHttpClient.GetAsync(endUrl); + //var dd = await _endHttpClient.GetAsync(endUrl); } else