本项目为servicecomb-java-chassis提供认证鉴权支持。鉴权实现的主要框架参考了The OAuth 2.0 Authorization Framework 和 OpenID Connect。项目参考Spring Security给开发者提供了接口。请参考开发指南获取详细信息。
项目包含了authentication-server,api和samples等目录。其中api目录主要提供给Authentication Server, Edge Service and Resource Server使用的api,authentication-server基于api实现, samples目录基于api提供一个完整的开发示例。
Authentication Server使用了MySQL数据库,需要安装数据库,并执行authentication-server\src\main\resources\sql\user.sql脚本初始化数据库。
build_and_run.bat
可以使用编辑器打开文件查询构建详情。
进入页面,使用admin/changeMyPassword登录
http://localhost:9090/ui/login.html
当四个服务都运行起来后,访问:
http://localhost:9093/v1/test/start
测试用例会执行十来秒钟,可以通过查看AuthenticationTestCase了解测试用例的详情。