网上关于OAuth2相关的资料非常多,推荐2篇自认为写的最详细、易懂的: http://www.ruanyifeng.com/blog/2014/05/oauth_2_0.html http://blog.csdn.net/seccloud/article/details/8192707