summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/sessions/service.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/sessions/service.go b/app/controllers/sessions/service.go
index 0fd7692..0ee692a 100644
--- a/app/controllers/sessions/service.go
+++ b/app/controllers/sessions/service.go
@@ -3,7 +3,6 @@ package sessions
import (
"context"
"errors"
- "fmt"
"net/http"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc"
@@ -35,7 +34,7 @@ func (svc *Service) GenerateRedirectURL() (string, string) {
func (svc *Service) Exchange(r *http.Request) (*oidc.Tokens, error) {
cookies := r.CookiesNamed("oauth_state")
if len(cookies) != 1 {
- return nil, errors.New(fmt.Sprintf("Missing CSRF token: %v, cookies: %v", len(cookies), r.Cookies()))
+ return nil, errors.New("Missing CSRF token")
}
state := r.URL.Query().Get("state")