spring security oauth2 授权码模式流程
1.用户访问授权url 如:http://localhost:8080/oauth/authorize?client_id=www&response_type=code&redirect_uri=http://localhost:9001/callback
2.跳到登录页面,进行登录。
3.登录成功跳到授权页面。
4.授权成功访问回调地址。
第三步访问不到的原因:
1. oauth_client_detail表中的autoapprove字段要设置成0