Skip to content

Commit 71b7500

Browse files
authored
fix: Omit empty assertion fields in client creds request (#745)
1 parent 3b0ab8f commit 71b7500

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/oidc/token_request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,6 @@ type ClientCredentialsRequest struct {
240240
Scope SpaceDelimitedArray `schema:"scope"`
241241
ClientID string `schema:"client_id"`
242242
ClientSecret string `schema:"client_secret"`
243-
ClientAssertion string `schema:"client_assertion"`
244-
ClientAssertionType string `schema:"client_assertion_type"`
243+
ClientAssertion string `schema:"client_assertion,omitempty"`
244+
ClientAssertionType string `schema:"client_assertion_type,omitempty"`
245245
}

0 commit comments

Comments
 (0)