IRC_NewDev
parent
d19b5da008
commit
9cbd1faf93
|
@ -2,8 +2,10 @@
|
||||||
using IdentityModel;
|
using IdentityModel;
|
||||||
using IdentityModel.Client;
|
using IdentityModel.Client;
|
||||||
using IRaCIS.Core.Application.Service.OAuth;
|
using IRaCIS.Core.Application.Service.OAuth;
|
||||||
|
using MassTransit;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using NPOI.SS.Formula.Functions;
|
using NPOI.SS.Formula.Functions;
|
||||||
|
@ -208,12 +210,16 @@ namespace IRaCIS.Core.Application.Service
|
||||||
Console.WriteLine(tokenResponse);
|
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();
|
|
||||||
|
|
||||||
var dd = await _endHttpClient.GetAsync(endUrl);
|
Results.Redirect(endUrl);
|
||||||
|
//var _endHttpClient = new HttpClient();
|
||||||
|
|
||||||
|
//var dd = await _endHttpClient.GetAsync(endUrl);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue