From 46cabe4af89cff72c76cd40a7615dfe0d3a53ac4 Mon Sep 17 00:00:00 2001 From: Jonathan Yoder Date: Tue, 6 May 2025 14:38:30 -0400 Subject: [PATCH] fix: Omit empty assertion fields in client creds request --- 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"` }