aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhouruiyu <zhouruiyu@huawei.com>2016-10-25 17:32:46 +0800
committerzhouruiyu <zhouruiyu@huawei.com>2016-10-25 17:32:46 +0800
commitdfe878321f798e2f221224993f1bee440bb53205 (patch)
tree2020ef824d446ea70052c0c2db6535109210dad8
parent588deb1af8f6a020ce3b105b4201b5cce235a274 (diff)
Change the login url in the check session lua plugin.
https://jira.open-o.org/browse/OCS-129 Change-Id: I1c575ee1d1077bddc215c08812bfd1cba4276f1d Signed-off-by: zhouruiyu <zhouruiyu@huawei.com>
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/plugins/auth.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/plugins/auth.lua b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/plugins/auth.lua
index 0bec85c..6eafc61 100644
--- a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/plugins/auth.lua
+++ b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/luaext/plugins/auth.lua
@@ -20,12 +20,12 @@ _M._VERSION = '1.0.0'
local auth_url = '/openoapi/auth/v1';
local auth_token_url = auth_url..'/tokens';
local auth_token_key = "X-Auth-Token";
-local redirect_url = "/openoui/auth/v1/login/html/login.html"
+local redirect_url = "/openoui/common/login.html"
local white_list= {
auth_token_url,
redirect_url,
- '/openoui/auth/v1/login/'
+ '/openoui/common/'
};
local function verify_value(value)
@@ -104,7 +104,7 @@ local function get_service_url()
proto = "http://";
end
--get url
- local uri = ngx.var.rui;
+ local uri = ngx.var.uri;
--form complete service url.
--local complete_url = proto..host..port..url
local complete_url = uri;