From 71b7500c62b356d3ad90adb1eabefa55511e6929 Mon Sep 17 00:00:00 2001 From: Jonathan Yoder Date: Wed, 2 Jul 2025 08:34:13 -0400 Subject: [PATCH] fix: Omit empty assertion fields in client creds request (#745) --- pkg/oidc/token_request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/oidc/token_request.go b/pkg/oidc/token_request.go index dadb205..1de1890 100644 --- a/pkg/oidc/token_request.go +++ b/pkg/oidc/token_request.go @@ -240,6 +240,6 @@ type ClientCredentialsRequest struct { Scope SpaceDelimitedArray `schema:"scope"` ClientID string `schema:"client_id"` ClientSecret string `schema:"client_secret"` - ClientAssertion string `schema:"client_assertion"` - ClientAssertionType string `schema:"client_assertion_type"` + ClientAssertion string `schema:"client_assertion,omitempty"` + ClientAssertionType string `schema:"client_assertion_type,omitempty"` }