From f1f496237b2d87e8c5ee8765439a8b37db1ad859 Mon Sep 17 00:00:00 2001 From: Stas Dmytryshyn Date: Tue, 7 Nov 2023 11:20:32 +0100 Subject: [PATCH] fix: oauth IsPublicClient (#1508) --- pkg/oauth2client/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/oauth2client/api.go b/pkg/oauth2client/api.go index d9ac42456..55c7fcf44 100644 --- a/pkg/oauth2client/api.go +++ b/pkg/oauth2client/api.go @@ -91,7 +91,7 @@ func (c *Client) GetScopes() fosite.Arguments { // IsPublic returns true if the client is public. func (c *Client) IsPublic() bool { - return c.TokenEndpointAuthMethod == "none" + return c.TokenEndpointAuthMethod == "" || c.TokenEndpointAuthMethod == "none" } // GetAudience returns the client audience.