From 8c11a6906d2f677bd8342e29b95b89495fc5c415 Mon Sep 17 00:00:00 2001 From: Dmitri Dolguikh Date: Fri, 17 Jul 2026 17:06:50 +0200 Subject: [PATCH] added logging of effective grant types Signed-off-by: Dmitri Dolguikh --- server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 2052b0d0fc..31484da64a 100644 --- a/server/server.go +++ b/server/server.go @@ -331,6 +331,7 @@ func newServer(ctx context.Context, c Config) (*Server, error) { } } sort.Strings(supportedGrants) + c.Logger.Debug("dex config: ", slog.String("supported_grants", strings.Join(supportedGrants, ", "))) webFS := web.FS() if c.Web.Dir != "" { @@ -534,7 +535,7 @@ func newServer(ctx context.Context, c Config) (*Server, error) { handleFunc("/auth", s.handleAuthorization) handleFunc("/auth/{connector}", s.handleConnectorLogin) handleFunc("/auth/{connector}/login", s.handlePasswordLogin) - if contains(s.supportedGrantTypes, grantTypeDeviceCode) { + if slices.Contains(s.supportedGrantTypes, grantTypeDeviceCode) { handleFunc("/device", s.handleDeviceExchange) handleFunc("/device/auth/verify_code", s.verifyUserCode) handleFunc("/device/code", s.handleDeviceCode)