Tarsier免登录配置

2021-07-08 by uino 55 Tarsier 产品

1>TM上修改SSO的配置项:integration.poc.open=true

2>重启SSO

3>免登录访问地址:

http://ip:port/vmdb-sso/external/operation/poclogin?loginCode=用户代码&targetUrl=tarsierUrl

说明:

a. ip:port:为vmdb-sso客户现场部署的实际IP、端口

b. 用户代码:为现有系统跳至Tarsier所需指明登录用户的代码

举例:http://192.168.1.118/vmdb-sso/external/operation/poclogin?loginCode=admin&targetUrl=http://192.168.1.118/tarsier-vmdb/operation/index.html#/editor/100000000000002?view=1&from=workbench%3Fcode%3D0421%26favorite%3D0%26less%3D0

注意: 如果遇到时输入免登录地址后无法正常跳转,可检查targeturl中是否存在特殊符号,如#、[]、? 特殊符号需要转义 http://192.168.1.119/vmdb-sso/external/operation/poclogin?loginCode=admin&targetUrl=http://192.168.1.119/tarsier-dmv/operation/index.html%23/editor/100000000000001?view=1&from=workbench 转义方法: encodeURIComponent

转回方法: decodeURIComponent('http%3A%2F%2F192.168.1.234%3A8080%2Ftarsier-dmv%2Foperation%2Findex.html%23%2Fsquare')