Browse Source

fmt

pull/7160/head
chrislu 1 month ago
parent
commit
c55deb0924
  1. 18
      weed/iam/oidc/oidc_provider.go
  2. 2
      weed/iam/oidc/oidc_provider_test.go

18
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

2
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)

Loading…
Cancel
Save