Feat v0.6.3 dead code sweep (#38)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #38.
This commit is contained in:
@@ -290,7 +290,7 @@ type TicketValidator interface {
|
||||
// WsAuth returns a Gin middleware for the WebSocket endpoint.
|
||||
// It authenticates via three methods in priority order:
|
||||
//
|
||||
// 1. ?ticket=<opaque> — single-use ticket (preferred, v0.28.8+)
|
||||
// 1. ?ticket=<opaque> — single-use ticket (preferred)
|
||||
// 2. ?token=<jwt> — legacy JWT in query param (deprecated)
|
||||
// 3. Authorization header — standard Bearer JWT
|
||||
//
|
||||
|
||||
@@ -10,7 +10,6 @@ import (
|
||||
)
|
||||
|
||||
// RateLimiter implements per-IP rate limiting backed by a shared store.
|
||||
// v0.32.0: replaces in-memory token bucket for cross-pod consistency.
|
||||
//
|
||||
// Fail-open: if the store is unavailable (PG down), requests are allowed.
|
||||
// Auth endpoints have their own protections (bcrypt, lockout); blocking
|
||||
|
||||
@@ -10,7 +10,6 @@ import (
|
||||
|
||||
// RequireTeamAdmin returns middleware that restricts access to team admins.
|
||||
// System admins are always allowed through.
|
||||
// v0.29.0: accepts TeamStore instead of using database.DB directly.
|
||||
func RequireTeamAdmin(teams store.TeamStore) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
role, _ := c.Get("role")
|
||||
@@ -43,7 +42,6 @@ func RequireTeamAdmin(teams store.TeamStore) gin.HandlerFunc {
|
||||
// RequireTeamMember returns middleware that restricts access to users who
|
||||
// belong to the team identified by :teamId (any role).
|
||||
// System admins are always allowed through.
|
||||
// v0.29.0: accepts TeamStore instead of using database.DB directly.
|
||||
func RequireTeamMember(teams store.TeamStore) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
role, _ := c.Get("role")
|
||||
|
||||
Reference in New Issue
Block a user