fixup! fixup! fixup! fixup! Cleanup.

This commit is contained in:
2025-09-28 00:12:16 +01:00
parent 5dfbbff858
commit 6d758276b5
12 changed files with 4997 additions and 17 deletions
+3 -15
View File
@@ -5,6 +5,8 @@ import (
"fmt"
"strings"
"time"
traefikoidc "github.com/lukaszraczylo/traefikoidc"
)
// Verifier handles token verification operations
@@ -30,7 +32,7 @@ type TokenCache interface {
// JWKCache interface for key management
type JWKCache interface {
GetJWKS(providerURL string) (*JWKS, error)
GetJWKS(providerURL string) (*traefikoidc.JWKSet, error)
}
// RateLimiter interface for request limiting
@@ -44,20 +46,6 @@ type Logger interface {
Errorf(format string, args ...interface{})
}
// JWKS represents JSON Web Key Set
type JWKS struct {
Keys []JWK `json:"keys"`
}
// JWK represents a JSON Web Key
type JWK struct {
Kid string `json:"kid"`
Kty string `json:"kty"`
Use string `json:"use"`
N string `json:"n"`
E string `json:"e"`
}
// JWT represents a parsed JWT token
type JWT struct {
Header map[string]interface{}