论文研究
simonwillison.net ·
@Simon Willison's Weblog
datasette-auth-github 1.0 发布
Simon Willison 发布 datasette-auth-github 1.0。作者称此前插件设置 cookie 时未带 Max-Age 参数,导致会话在浏览器会话结束时过期(在 Mobile Safari 上尤为常见),已在 #80 中修复;该插件已针对 Datasette 0.65.x 和 Datasette 1.0ax 测试,因此升为 1.0 版本。
AI推荐理由 Simon Willison 发布 datasette-auth-github 1.0,说明修复了未设置 Max-Age 导致会话在浏览器关闭后过期的问题(#80),并称该插件已针对 Datasette 0.65.x 与 1.0ax 测试。这是开发者本人对具体变更的说明,信息明确、可验证,对使用 Datasette 的开发者有直接价值;但属于小型插件版本发布,影响范围有限。
78
正文
**Release:** [datasette-auth-github 1.0](https://github.com/simonw/datasette-auth-github/releases/tag/1.0)
I run this GitHub login plugin on the [agent.datasette.io](https://agent.datasette.io/) demo site and I noticed that my authenticated sessions weren't lasting very long. It turned out that the plugin was setting cookies without a `Max-Age` parameter, so they were expiring at the end of a browser session (which in Mobile Safari seems to happen pretty often, independently of how you are using the app.)
I fixed that in [#80](https://github.com/simonw/datasette-auth-github/issues/80) and, since this plugin has been around for quite a while and is tested against both Datasette 0.65.x and Datasette 1.0ax, I decided to bump it up to a 1.0 release. I'm trying to get better at promoting stable plugins to 1.0.
Tags: [github](https://simonwillison.net/tags/github), [plugins](https://simonwillison.net/tags/plugins), [datasette](https://simonwillison.net/tags/datasette)