mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-19 00:34:16 +00:00
jwks
This commit is contained in:
@@ -385,6 +385,14 @@ func serveRegistry(cmd *cobra.Command, args []string) error {
|
||||
config := oauthApp.GetConfig()
|
||||
metadata := config.ClientMetadata()
|
||||
|
||||
// For confidential clients, ensure JWKS is included
|
||||
// The indigo library should populate this automatically, but we explicitly set it here
|
||||
// to be defensive and ensure it's always present for confidential clients
|
||||
if config.IsConfidential() && metadata.JWKS == nil {
|
||||
jwks := config.PublicJWKS()
|
||||
metadata.JWKS = &jwks
|
||||
}
|
||||
|
||||
// Convert indigo's metadata to map so we can add custom fields
|
||||
metadataBytes, err := json.Marshal(metadata)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user