Commit 2b1d95b8 authored by wubi's avatar wubi

去除token校验

parent 1db45310
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
} }
}, },
"menu-menu-item-sidebar": false, "menu-menu-item-sidebar": false,
"menu-deploymenu-item-flow": true, "menu-deploymenu-item-flow": false,
"menu-deploymenu-item-full": false, "menu-deploymenu-item-full": true,
"menu-deploymenu-item-node": false "menu-deploymenu-item-node": false
} }
} }
\ No newline at end of file
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
} }
}, },
"menu-menu-item-sidebar": true, "menu-menu-item-sidebar": true,
"menu-deploymenu-item-flow": true, "menu-deploymenu-item-flow": false,
"menu-deploymenu-item-full": false, "menu-deploymenu-item-full": true,
"menu-deploymenu-item-node": false "menu-deploymenu-item-node": false
} }
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"$": "964fe12d2ff9727c6ddcf00878d0a43b5vxJ3iDZynTlLkXLAdshuF9NodDN9ZThOVRQb3jq+lJIcBKqNx+U69WCRdEzsh2u2VDidN2RXMXVmQQcg/nEjhincA==" "$": "fc5a332a3cb8897c95b9ae257cbf6052yftu01qgATfooVMa8NCzrjr5w3Ob20LpTTklPiMRDDsLtLS0CmCpsnSB43pz6ZNkPxpl+wB+wl2EQr4XDnXtpMPCBuBSQ3Wr3BPDcrCpQUqHBWYGU3iDUUc="
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"$": "fc5a332a3cb8897c95b9ae257cbf6052yftu01qgATfooVMa8NCzrjr5w3Ob20LpTTklPiMRDDsLtLS0CmCpsnSB43pz6ZNkPxpl+wB+wl2EQr4XDnXtpMPCBuBSQ3Wr3BPDcrCpQUqHBWYGU3iDUUc=" "$": "7168b8bdcaa4b2ec90a92aecf44946beJeo="
} }
\ No newline at end of file
...@@ -1556,6 +1556,9 @@ RED.settings = (function () { ...@@ -1556,6 +1556,9 @@ RED.settings = (function () {
RED.settings.set("auth-tokens", {access_token: getJWTToken()}); RED.settings.set("auth-tokens", {access_token: getJWTToken()});
} }
//Object.assign(headers, {'Authorization': 'Bearer ' + "1234"});
//RED.settings.set("auth-tokens", {access_token: "1234"});
$.ajax({ $.ajax({
headers: headers, headers: headers,
dataType: "json", dataType: "json",
...@@ -74718,11 +74721,11 @@ function clearAuthCache(immediate = true) { ...@@ -74718,11 +74721,11 @@ function clearAuthCache(immediate = true) {
} }
function getJWTToken() { function getJWTToken() {
return getAuthCache(JWT_TOKEN_KEY) return "1234"//getAuthCache(JWT_TOKEN_KEY)
} }
function getRefreshToken() { function getRefreshToken() {
return getAuthCache(REFRESH_TOKEN_KEY) return "1234"//getAuthCache(REFRESH_TOKEN_KEY)
} }
;/** ;/**
* @description: Request result set * @description: Request result set
...@@ -75268,9 +75271,9 @@ beforeRequestHook: (config, options) => { ...@@ -75268,9 +75271,9 @@ beforeRequestHook: (config, options) => {
requestInterceptors: async (config, options) => { requestInterceptors: async (config, options) => {
// 请求之前处理config // 请求之前处理config
const token = getJWTToken() // const token = getJWTToken()
if (token && config?.requestOptions?.withToken !== false) { // if (token && config?.requestOptions?.withToken !== false) {
// try { // try {
// const { exp = 0 } = jwtDecode(token) // const { exp = 0 } = jwtDecode(token)
...@@ -75283,10 +75286,10 @@ requestInterceptors: async (config, options) => { ...@@ -75283,10 +75286,10 @@ requestInterceptors: async (config, options) => {
// catch (e) { // catch (e) {
// } // }
config.headers.Authorization = options.authenticationScheme // config.headers.Authorization = options.authenticationScheme
? `${options.authenticationScheme} ${token}` // ? `${options.authenticationScheme} ${token}`
: token // : token
} // }
return config return config
}, },
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment