@@ -16,6 +16,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -412,12 +413,22 @@ namespace IRaCIS.Api.Controllers
|
||||
[HttpGet("User/OAuthCallBack")]
|
||||
public async Task<IResponseOutput> OAuthCallBack(string type, string code)
|
||||
{
|
||||
#region 获取AccessToken
|
||||
|
||||
var headerDic = new Dictionary<string, string>();
|
||||
headerDic.Add("code", code);
|
||||
headerDic.Add("grant_type", "authorization_code");
|
||||
headerDic.Add("redirect_uri", "http://localhost:6100");
|
||||
headerDic.Add("scope", "all");
|
||||
|
||||
#endregion
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 测试获取用户 ip
|
||||
|
||||
Reference in New Issue
Block a user