diff --git a/pkg/handlers/job.go b/pkg/handlers/job.go index 6612b4e3..98b7ecbf 100644 --- a/pkg/handlers/job.go +++ b/pkg/handlers/job.go @@ -127,7 +127,9 @@ func MakeJobHandler(cfg *types.Config, kubeClientset *kubernetes.Clientset, back var uidErr error uidFromToken, uidErr = oidcManager.GetUID(rawToken) if uidErr != nil { - jobLogger.Println("WARNING: ", uidErr) + jobLogger.Println("WARNING:", uidErr) + } else { + jobLogger.Println("DEBUG: uid from token ->", uidFromToken) } } @@ -146,7 +148,7 @@ func MakeJobHandler(cfg *types.Config, kubeClientset *kubernetes.Clientset, back c.Set("uidOrigin", uidFromToken) } else { // Set as nil string if unable to get an UID - jobLogger.Println("WARNING: ", err) + jobLogger.Println("WARNING:", err) c.Set("uidOrigin", "nil") } } else { diff --git a/pkg/utils/auth/oidc.go b/pkg/utils/auth/oidc.go index 7582695f..d5803b01 100644 --- a/pkg/utils/auth/oidc.go +++ b/pkg/utils/auth/oidc.go @@ -198,7 +198,6 @@ func (om *oidcManager) UserHasVO(rawToken string, vo string) (bool, error) { func (om *oidcManager) GetUID(rawToken string) (string, error) { ui, err := om.GetUserInfo(rawToken) - oidcLogger.Println("received uid: ", ui.Subject) if err != nil { return ui.Subject, nil }