<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit-simple-authentication/src/authentication.rs, branch master</title>
<subtitle>Simple authentication for cgit powered by sqlite and redis</subtitle>
<id>https://git.leanhe.dev/cgit-simple-authentication/atom/src/authentication.rs?h=master</id>
<link rel='self' href='https://git.leanhe.dev/cgit-simple-authentication/atom/src/authentication.rs?h=master'/>
<link rel='alternate' type='text/html' href='https://git.leanhe.dev/cgit-simple-authentication/'/>
<updated>2026-06-11T06:53:23Z</updated>
<entry>
<title>fix: Fix OsRng import and refactor Redis connection setup</title>
<updated>2026-06-11T06:53:23Z</updated>
<author>
<name>KunoiSayami</name>
<email>i@leanhe.dev</email>
</author>
<published>2026-06-11T06:53:23Z</published>
<link rel='alternate' type='text/html' href='https://git.leanhe.dev/cgit-simple-authentication/commit/?id=9e67f120b797bae10bd226bbb4632f8d19a24361'/>
<id>urn:sha1:9e67f120b797bae10bd226bbb4632f8d19a24361</id>
<content type='text'>
- Fix password-hash version mismatch (0.6→0.5) causing OsRng to be
  gated behind missing getrandom feature; enable argon2 rand feature
- Extract get_redis_connection() helper to deduplicate Redis client
  setup across authentication, repo control, and tests
- Tighten username validation regex to require ≥2 chars and disallow
  leading/trailing dots or hyphens
- Handle malformed cookies without split_once gracefully (continue
  instead of panic)
- Fix typos: "rated commands" → "related commands" in CLI help text

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
Signed-off-by: KunoiSayami &lt;i@leanhe.dev&gt;
</content>
</entry>
<entry>
<title>feat: Add configurable Redis URL (claude)</title>
<updated>2026-02-09T13:51:38Z</updated>
<author>
<name>KunoiSayami</name>
<email>i@leanhe.dev</email>
</author>
<published>2026-02-09T13:50:12Z</published>
<link rel='alternate' type='text/html' href='https://git.leanhe.dev/cgit-simple-authentication/commit/?id=c708a63f7e5b9b22f8095ede0be56115eccbbac8'/>
<id>urn:sha1:c708a63f7e5b9b22f8095ede0be56115eccbbac8</id>
<content type='text'>
* feat: Add login rate limiting (claude)
* feat: Add SameSite cookie attribute (claude)

Signed-off-by: KunoiSayami &lt;i@leanhe.dev&gt;
</content>
</entry>
<entry>
<title>refactor: Remove pam authentication method</title>
<updated>2026-02-09T12:59:33Z</updated>
<author>
<name>KunoiSayami</name>
<email>i@leanhe.dev</email>
</author>
<published>2026-02-09T12:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.leanhe.dev/cgit-simple-authentication/commit/?id=735612ccfba150978d174fcc7d95b2ea3013ab9e'/>
<id>urn:sha1:735612ccfba150978d174fcc7d95b2ea3013ab9e</id>
<content type='text'>
Signed-off-by: KunoiSayami &lt;i@leanhe.dev&gt;
</content>
</entry>
<entry>
<title>refactor: Move functions out of main.rs</title>
<updated>2025-03-25T14:43:40Z</updated>
<author>
<name>KunoiSayami</name>
<email>i@leanhe.dev</email>
</author>
<published>2025-03-25T14:43:40Z</published>
<link rel='alternate' type='text/html' href='https://git.leanhe.dev/cgit-simple-authentication/commit/?id=8b091d4ddc499be6bc4ce4d430a0c09f433f9884'/>
<id>urn:sha1:8b091d4ddc499be6bc4ce4d430a0c09f433f9884</id>
<content type='text'>
Signed-off-by: KunoiSayami &lt;i@leanhe.dev&gt;
</content>
</entry>
</feed>
