SSO with OAuth2 学习过程中的弯路

https://spring.io/blog/2015/02/03/sso-with-oauth2-angular-js-and-spring-security-part-v 文章根据配置到

Testing the Authorization Server

Our server is using the Spring Boot default security settings, so like the server in Part I it will be protected by HTTP Basic authentication. To initiate an authorization code token grant you visit the authorization endpoint, e.g. at http://localhost:9999/uaa/oauth/authorize?response_type=code&client_id=acme&redirect_uri=http://example.com once you have authenticated you will get a redirect to example.com with an authorization code attached, e.g. http://example.com/?code=jYWioI.

Note: for the purposes of this sample application we have created a client “acme” with no registered redirect, which is what enables us to get a redirect the example.com. In a production application you should always register a redirect (and use HTTPS).

  启动eclipse里的工程,需要输入用户名密码,但spring文档里没给出,找了好久,今天在http://blog.csdn.net/neosmith/article/details/52539927这个博客里找到了,先记录:

用户名:user  密码:password

posted @ 2017-09-07 09:58  judy999  阅读(217)  评论(0编辑  收藏  举报