one-api/middleware
Laisky.Cai ba9b258a4b feat: Enhance security and fix bugs in authentication
- Update the minimum access token length from 16 to 32
- Prevent spam by introducing policies and detecting user agents
- Add an authorization header to the login response
- Use base64 to decode the session secret and generate a random one if not set
2024-03-05 13:07:07 +00:00
..
auth.go feat: Enhance security and fix bugs in authentication 2024-03-05 13:07:07 +00:00
cache.go fix: add no-cache for index.html 2023-05-22 00:54:53 +08:00
cors.go fix: cors allow all headers 2023-06-20 22:04:01 +08:00
distributor.go Merge remote-tracking branch 'origin/upstream/main' 2024-03-05 01:02:35 +00:00
logger.go chore: update module name 2024-01-28 19:38:58 +08:00
rate-limit.go chore: update module name 2024-01-28 19:38:58 +08:00
recover.go chore: update module name 2024-01-28 19:38:58 +08:00
request-id.go feat: built in retry supported (close #1036, close #770) 2024-02-25 19:01:49 +08:00
turnstile-check.go chore: update module name 2024-01-28 19:38:58 +08:00
utils.go chore: update module name 2024-01-28 19:38:58 +08:00