原文:关于spring-cloud-starter-oauth2源码跟踪笔记

主要分析无session的情况下,即令牌模式,已经认证过的用户,如何进行资源访问控制,其原理与spring security类似,但是不同的是spring security不对令牌进行处理。 spring security第一次认证通过后,需要手动生成令牌,第二次访问,也需要自己编写过滤器手动解析令牌,并且需要手动通过SecurityContextHolder进行认证上下文设置,这种方式比较灵活 ...

2020-07-22 15:58 0 668 推荐指数:

查看详情

OAuth2AuthenticationManager源码跟踪

本文仅助那些在Security集成OAuth2.0路上踩坑的人理解认证过程。 OAuth2AuthenticationManager 首先,我觉得分析OAuth2AuthenticationManager,我们需要先理解它是如何被使用,何时被使用,那我们就从这里开始逐一分析吧,我手 ...

Sun Mar 15 03:16:00 CST 2020 0 1336
spring-cloud-starter-gateway

********************************************************** Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway ...

Mon Apr 22 17:43:00 CST 2019 2 4918
Spring Cloud OAuth

In this blog post we will create a secure API for external access, using OAuth 2.0, to the microservices we created inPart 1 and Part 2. ...

Thu Mar 03 05:43:00 CST 2016 0 1797
spring jdbctemplate源码跟踪

闲着没事,看看源码也是一种乐趣! java操作数据库的基本步骤都是类似的: 1. 建立数据库连接 2. 创建Connection 3. 创建statement或者preparedStateement 4. 执行sql,返回ResultSet 5. 关闭resultSet 5.关闭 ...

Sun Jun 07 23:46:00 CST 2015 0 5786
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM