《用Gin框架构建分布式应用》学习第9天,p127-p142总结,总计16页。
一、技术总结
1.Authentication方式汇总
(1)API keys
API keys 认证方式示例:
这种方式在本人实际的工作经历中还没有遇到,不过在其它网站中有看到过实际应用。
(2)Basic Auth
(3)Client session
(4)OpenID Connect
(5)OpenAutherization(OAuth) 2.0
2.JWT
3.Gin知识点
(1)router.Group()
二、英语总结
1.pick up
p133,API keys are simple; however, anyone who makes a request to an API transmits their key,and in theory, the key can be picked up easily with a man-in-the-middle (MITM) attack
when no encryption is in use.
vt. to get sth。pick up这个词用法很灵活,感觉在很多场景能使用。
2.depict
p134, A JWT token consists of three parts separated by dots, as depicted in the following
screenshot...
(1)depict: de-("down") + pingere("to paint")。vt. to represent or show sth in a picture(描绘).
三、其它
虽然在使用 Python、Flask的时候使用过 JWT,但是本章阅读起来速度还是比较慢,本质在于对Go语言不熟悉,以及Go开发中使用的框架不熟悉。
四、参考资料
1. 编程
2. 英语
领取专属 10元无门槛券
私享最新 技术干货