From c55deb0924abc146db6cbc9d572e71f218c254b1 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 24 Aug 2025 00:10:54 -0700 Subject: [PATCH] fmt --- weed/iam/oidc/oidc_provider.go | 18 +++++++++--------- weed/iam/oidc/oidc_provider_test.go | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/weed/iam/oidc/oidc_provider.go b/weed/iam/oidc/oidc_provider.go index 147804445..5f947fce5 100644 --- a/weed/iam/oidc/oidc_provider.go +++ b/weed/iam/oidc/oidc_provider.go @@ -59,15 +59,15 @@ type JWKS struct { // JWK represents a JSON Web Key type JWK struct { - Kty string `json:"kty"` // Key Type (RSA, EC, etc.) - Kid string `json:"kid"` // Key ID - Use string `json:"use"` // Usage (sig for signature) - Alg string `json:"alg"` // Algorithm (RS256, etc.) - N string `json:"n"` // RSA public key modulus - E string `json:"e"` // RSA public key exponent - X string `json:"x"` // EC public key x coordinate - Y string `json:"y"` // EC public key y coordinate - Crv string `json:"crv"` // EC curve + Kty string `json:"kty"` // Key Type (RSA, EC, etc.) + Kid string `json:"kid"` // Key ID + Use string `json:"use"` // Usage (sig for signature) + Alg string `json:"alg"` // Algorithm (RS256, etc.) + N string `json:"n"` // RSA public key modulus + E string `json:"e"` // RSA public key exponent + X string `json:"x"` // EC public key x coordinate + Y string `json:"y"` // EC public key y coordinate + Crv string `json:"crv"` // EC curve } // NewOIDCProvider creates a new OIDC provider diff --git a/weed/iam/oidc/oidc_provider_test.go b/weed/iam/oidc/oidc_provider_test.go index 085da4b6a..adbfe9115 100644 --- a/weed/iam/oidc/oidc_provider_test.go +++ b/weed/iam/oidc/oidc_provider_test.go @@ -262,7 +262,7 @@ func TestOIDCProviderUserInfo(t *testing.T) { t.Skip("UserInfo endpoint integration not yet implemented - skipping user info test") return } - + require.NoError(t, err) require.NotNil(t, identity) assert.Equal(t, "user123", identity.UserID)