Loading

摘要: Tomcat Container Component Architecture 阅读全文
posted @ 2021-03-11 23:28 齐玉 阅读(29) 评论(0) 推荐(0)
摘要: Tomcat Connector Component Architecture 阅读全文
posted @ 2021-03-11 23:16 齐玉 阅读(31) 评论(0) 推荐(0)
摘要: Tomcat Simple Architecture and Code Code From "How Tomcat Works" this book. 阅读全文
posted @ 2021-03-10 00:34 齐玉 阅读(25) 评论(0) 推荐(0)
摘要: Web Server Architecture A web server is to help users to get resources in another place. So it has to follow the steps: Accept the request. Parse the 阅读全文
posted @ 2021-03-09 21:57 齐玉 阅读(50) 评论(0) 推荐(0)
摘要: Web Server A web server is a place in the network which store some general resources for many other users to get. 阅读全文
posted @ 2021-03-09 21:49 齐玉 阅读(12) 评论(0) 推荐(0)
摘要: Start SSO: Token or JWT 在Start SSO: CAS中我们了解到实现单点登录的一种方式,现在我们考虑通过Token-Based Authentication实现单点登录,下面我将用 JWT 代替 Token 来说明。下图省略了访问第二个应用系统的情况,其实和第二次访问第一个 阅读全文
posted @ 2021-03-07 02:37 齐玉 阅读(45) 评论(0) 推荐(0)
摘要: Start SSO: CAS 我们知道了 Cookie-Based Authentication 实现登录应用的服务端,假设有一个用来进行身份验证的服务端,也就是说把应用中身份验证的功能剥离出来当成一个外在的模块,这种场景要如何实现登录呢? 实际上,上述问题所描述的场景叫做中央认证服务(Centra 阅读全文
posted @ 2021-03-07 01:04 齐玉 阅读(58) 评论(0) 推荐(0)
摘要: Traditional Token vs. JSON Web Token Traditional Token 传统的 token 只是一个简单的字符串(比如 uuid ),不包含其他信息(用户基本信息,过期时间),用来进行身份验证也必须用 Redis 进行存储。 JSON Web Token JWT 阅读全文
posted @ 2021-03-06 23:08 齐玉 阅读(48) 评论(0) 推荐(0)
摘要: Before SSO: Session, Cookie, Token 在单点登录这种设计出现之前,人们如何保证打开浏览器登录网站(如博客园)一次之后,新建标签页再次打开网站而不用登录了呢? Cookie-Based Authentication HTTP是无状态的网络协议,在服务端我们开辟一块叫做 阅读全文
posted @ 2021-03-06 19:21 齐玉 阅读(73) 评论(0) 推荐(0)
摘要: Map Source Code Hashtable public class Hashtable<K,V> extends Dictionary<K,V> implements Map<K,V>, Cloneable, java.io.Serializable { ... private trans 阅读全文
posted @ 2021-03-03 23:13 齐玉 阅读(49) 评论(0) 推荐(0)