datasette-auth-github 1.0 发布
英文标题:datasette-auth-github 1.0
datasette-auth-github 发布 1.0 版本,修复了 GitHub 登录会话过早失效的问题。此前插件设置 Cookie 时未包含 `Max-Age` 参数,导致 Cookie 会在浏览器会话结束时过期;在 Mobile Safari 中,这类会话结束可能频繁发生。该修复已在 [#80](https://github.com/simonw/datasette-auth-github/issues/80) 中完成。由于该插件已长期使用,并已针对 Datasette 0.65.x 和 Datasette 1.0ax 进行测试,开发者决定将其升级为 1.0 稳定版。
中文
我在演示站点 agent.datasette.io 上运行这个 GitHub 登录插件时,注意到经过身份验证的会话持续时间并不长。后来发现,插件设置 Cookie 时没有添加 Max-Age 参数,因此这些 Cookie 会在浏览器会话结束时过期(而在 Mobile Safari 中,无论你如何使用应用程序,浏览器会话似乎都会相当频繁地结束)。
我已在 #80 中修复了这个问题。考虑到这个插件已存在相当长时间,并且已针对 Datasette 0.65.x 和 Datasette 1.0ax 进行了测试,我决定将其版本提升至 1.0。我正在努力更好地将稳定插件升级为 1.0 版本。
English / 原文
I run this GitHub login plugin on the 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 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.