Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置login登录的时候,tokenUrl返回的格式能不能给一个 #34

Closed
frameZhang opened this issue Mar 9, 2018 · 10 comments
Closed

Comments

@frameZhang
Copy link

frameZhang commented Mar 9, 2018

config.json下的login的tokenUrl,所需要的返回数据的格式是什么?能不能给我参考一哈?因为我这边配置之后报错。
image

@frameZhang frameZhang changed the title 配置login登录的时候,tokenurl 配置login登录的时候,tokenUrl返回的格式能不能给一个,mock Mar 9, 2018
@frameZhang frameZhang changed the title 配置login登录的时候,tokenUrl返回的格式能不能给一个,mock 配置login登录的时候,tokenUrl返回的格式能不能给一个 Mar 9, 2018
@JasonFang93
Copy link
Member

JasonFang93 commented Mar 9, 2018

{
      "ssoType": "cas",
      "authUrl": "https://cas.test.com/caso/login.html?service={{service}}",
      "tokenUrl": "https://cas.test.com/caso/valid?service={{service}}&ticket={{token}}",
      "serviceUrl": "http://test.xxx.com:8080",
      "adminList": []
}

@frameZhang
Copy link
Author

您好,请问这个adminList你们文档上是用的单引号,要报错把?而且为什么我设置了管理员登录上去还是普通用户额?

@frameZhang
Copy link
Author

frameZhang commented Mar 9, 2018

image

image
没有出现,权限控制的选项

@frameZhang
Copy link
Author

建议 文档该更新一次了

@JasonFang93
Copy link
Member

每次登陆时会校验 adminList 中的值,你 adminList 中的值跟写入数据库 user 表的 name 字段是一样的吗?你试下,重新退出下再登录试试
关于文档,后面会抽时间在整理下

@frameZhang
Copy link
Author

frameZhang commented Mar 12, 2018

您好,我这边确认了是一样的,但是还是没有权限的选项。
image
image
image

@frameZhang
Copy link
Author

您好,还有一个问题请教,请问您们这边yicon init是从哪里拉的代码?需要翻墙吗?我在家拉取只成功过一次,在公司拉不下来代码。

@frameZhang
Copy link
Author

frameZhang commented Apr 11, 2018 via email

@leihao2016
Copy link

同样的问题,登陆成功返回的json格式是什么样的,有童鞋搞定了这个登陆了吗,指点一下,谢谢!

@leihao2016
Copy link

@frameZhang 你的登陆打通了吗,能不能指点下呢,谢谢

@jgx-jay jgx-jay closed this as completed Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants