-
Notifications
You must be signed in to change notification settings - Fork 403
06 单点登录sso demo
liuweijw edited this page Mar 19, 2018
·
1 revision
1、访问sso工程
-
首页 http://localhost:3001/sso/index.html 会自动重定向授权: http://localhost:1004/auth/login
-
输入用户名密码登录之后如下:
-
点击允许
2、相关配置
server:
port: 3001
context-path: /sso
security:
oauth2:
client:
client-id: 客户端id
client-secret: 客户端密码
user-authorization-uri: http://localhost:1004/oauth/authorize # 授权地址
access-token-uri: http://localhost:1004/oauth/token # 授权token地址
scope: server
resource:
jwt:
key-value: ENC(jwt key) # jwt token 密匙key