diff --git a/internal/oidc/validator.go b/internal/oidc/validator.go index 6c3862b..c4cd301 100644 --- a/internal/oidc/validator.go +++ b/internal/oidc/validator.go @@ -159,7 +159,7 @@ func (v *Validator) ValidateToken(tokenString string) (*Claims, error) { return &claims, nil } -func (v *Validator) keyFunc(token *jwt.Token) (interface{}, error) { +func (v *Validator) keyFunc(token *jwt.Token) (any, error) { // Ensure the signing method is RSA if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok { return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"]) diff --git a/internal/oidc/validator_test.go b/internal/oidc/validator_test.go index b52a3cd..de98f45 100644 --- a/internal/oidc/validator_test.go +++ b/internal/oidc/validator_test.go @@ -35,8 +35,8 @@ func serveJWKS(t *testing.T, key *rsa.PrivateKey, kid string) *httptest.Server { nBytes := key.PublicKey.N.Bytes() eBytes := big.NewInt(int64(key.PublicKey.E)).Bytes() - jwks := map[string]interface{}{ - "keys": []map[string]interface{}{ + jwks := map[string]any{ + "keys": []map[string]any{ { "kty": "RSA", "kid": kid, diff --git a/internal/web/server_test.go b/internal/web/server_test.go index c1969ff..54258a7 100644 --- a/internal/web/server_test.go +++ b/internal/web/server_test.go @@ -42,8 +42,8 @@ func serveJWKS(t *testing.T, key *rsa.PrivateKey, kid string) *httptest.Server { nBytes := key.PublicKey.N.Bytes() eBytes := big.NewInt(int64(key.PublicKey.E)).Bytes() - jwks := map[string]interface{}{ - "keys": []map[string]interface{}{ + jwks := map[string]any{ + "keys": []map[string]any{ { "kty": "RSA", "kid": kid,