|
@@ -1,5 +1,4 @@
|
|
-using CoreSDK;
|
|
|
|
-using Microsoft.AspNetCore.Authentication;
|
|
|
|
|
|
+using Microsoft.AspNetCore.Authentication;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
@@ -48,7 +47,7 @@ namespace TEAMModelOS.Controllers
|
|
public BaseResponse ValidateIdToken(JosnRequest<string> request)
|
|
public BaseResponse ValidateIdToken(JosnRequest<string> request)
|
|
{
|
|
{
|
|
ResponseBuilder builder = new ResponseBuilder();
|
|
ResponseBuilder builder = new ResponseBuilder();
|
|
- bool b = CoreTokenExtensions.ValidateIdToken(request.@params, BaseConfigModel.Configuration["Option:IdTokenSalt"]);
|
|
|
|
|
|
+ // bool b = CoreTokenExtensions.ValidateIdToken(request.@params, BaseConfigModel.Configuration["Option:IdTokenSalt"]);
|
|
var a = CreateToken("habook0001", BaseConfigModel.Configuration["Option:IdTokenSalt"],
|
|
var a = CreateToken("habook0001", BaseConfigModel.Configuration["Option:IdTokenSalt"],
|
|
new string[] { "admin","teacher"},new string []{"update","create" },
|
|
new string[] { "admin","teacher"},new string []{"update","create" },
|
|
BaseConfigModel.Configuration.GetSection("Option:Exp").Get<int>());
|
|
BaseConfigModel.Configuration.GetSection("Option:Exp").Get<int>());
|