diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-09-06 14:21:23 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-09-06 14:32:17 +0800 |
commit | b3580028292d2927564020e8143bc1f659ef0ab3 (patch) | |
tree | 6fffa805732173047ef7ae449c9754e9fd40ee05 /testapi/opnfv_testapi/router | |
parent | 3c77911dfb82fe165607496ca8a14ad7bd1a4337 (diff) |
hide cas ticket from web portal
In the previous implementation, when login the url will shown as:
http://localhost:8000/?ticket=ST-5WzYs6SD2A#/
this patch aims to hide the ticket mechanism.
1) add /api/v1/auth/signin_return to process login verify
2) refactor code, leverage SignBaseHanlder() to manage casclient
Change-Id: I62e23eb69ee52304c30753e861b4f0a4e0d45541
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/router')
-rw-r--r-- | testapi/opnfv_testapi/router/url_mappings.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/router/url_mappings.py b/testapi/opnfv_testapi/router/url_mappings.py index c038e88..ce0a3ee 100644 --- a/testapi/opnfv_testapi/router/url_mappings.py +++ b/testapi/opnfv_testapi/router/url_mappings.py @@ -76,6 +76,7 @@ mappings = [ (r'/', root.RootHandler), (r'/api/v1/auth/signin', sign.SigninHandler), + (r'/{}'.format(CONF.lfid_signin_return), sign.SigninReturnHandler), (r'/api/v1/auth/signout', sign.SignoutHandler), (r'/api/v1/profile', user.UserHandler), |