0基础入门最快:https://github.com/spring-guides/gs-securing-web

Architecture Overview
核心的认证入口始终只有一个:AuthenticationManager
不同的认证方式:邮箱+密码,手机号码+密码登录则对应了不同的AuthenticationProvider
然后会调用我们UserDetails 来验证登录信息 其中我们要配置passwordEncoder

然后
http://www.tianshouzhi.com/api/tutorials/spring_security_4/250
读完就成了,感觉是最好的ss教程了

Oauth2

https://github.com/lexburner/oauth2-demo
照着做

慕课网
https://coding.imooc.com/class/134.html