IRC_NewDev
hang 2024-11-04 18:02:27 +08:00
parent d19b5da008
commit 9cbd1faf93
1 changed files with 9 additions and 3 deletions

View File

@ -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