本服务采用了 mysql 存储 clientId 验证信息,需创建 oauth_client_details 表,请参考 OAuth2 Schema DDL
docker pull micyo202/lion-auth:tagname
docker run -d \
-p 8888:8888 \
-e REGISTER_HOST=localhost \
micyo202/lion-auth:tagname
请求所需参数:client_id、response_type、redirect_uri
http://localhost:8888/oauth/authorize?client_id=lion-client&response_type=code&redirect_uri=https://github.com/micyo202/lion
请求所需参数:client_id、client_secret、scope、grant_type、redirect_uri、code
http://localhost:8888/oauth/token?client_id=lion-client&client_secret=secret&scope=all&grant_type=authorization_code&redirect_uri=https://github.com/micyo202/lion&code=YBElD2
请求所需参数:client_id、client_secret、scope、grant_type、username、password
http://localhost:8888/oauth/token?client_id=lion-client&client_secret=secret&scope=all&grant_type=password&username=admin&password=123456
请求所需参数:token
http://localhost:8888/oauth/check_token?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
请求所需参数:grant_type、refresh_token、client_id、client_secret
http://localhost:8888/oauth/token?grant_type=refresh_token&refresh_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&client_id=lion-client&client_secret=secret