diff --git a/backend/internal/handler/admin/account_handler.go b/backend/internal/handler/admin/account_handler.go index ce5cffe4..f860e666 100644 --- a/backend/internal/handler/admin/account_handler.go +++ b/backend/internal/handler/admin/account_handler.go @@ -1453,6 +1453,12 @@ func (h *OAuthHandler) GenerateSetupTokenURL(c *gin.Context) { req = GenerateAuthURLRequest{} } + if req.ProxyID != nil { + slog.Info("generate_setup_token_url", "proxy_id", *req.ProxyID) + } else { + slog.Info("generate_setup_token_url", "proxy_id", nil) + } + result, err := h.oauthService.GenerateSetupTokenURL(c.Request.Context(), req.ProxyID) if err != nil { response.ErrorFrom(c, err) @@ -1500,6 +1506,12 @@ func (h *OAuthHandler) ExchangeSetupTokenCode(c *gin.Context) { return } + if req.ProxyID != nil { + slog.Info("exchange_setup_token_code", "session_id", req.SessionID, "proxy_id", *req.ProxyID) + } else { + slog.Info("exchange_setup_token_code", "session_id", req.SessionID, "proxy_id", nil) + } + tokenInfo, err := h.oauthService.ExchangeCode(c.Request.Context(), &service.ExchangeCodeInput{ SessionID: req.SessionID, Code: req.Code,