Files
SOP/sop-auth/readme.md
tanghc bffc5b7e00 2.0
2019-08-22 19:25:53 +08:00

12 lines
500 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 应用授权服务
- 启动注册中心、网关、本服务(sop-auth)
- 浏览器访问http://localhost:8087/oauth2/appToAppAuth?app_id=2019032617262200001&redirect_uri=http%3a%2f%2flocalhost%3a8087%2foauth2callback
- 输入用户名密码登录,这里是`zhangsan/123456`
授权接口在`OAuth2Controller`中,查看回调接口在`CallbackController`
回调接口应该由开发者实现,这里为了演示,写在一起。
token的维护重点关注`OAuth2ManagerRedis.java`