From 5a0a9a57b8e731567f3784474f5e7e0ad5aa1dc5 Mon Sep 17 00:00:00 2001 From: Linus Karlsson <197840+zozs@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:11:12 +0200 Subject: [PATCH] Request extra scope for full API access (#274) Also fix some missing newlines. --- internal/auth/auth.go | 2 +- internal/cmd/auth/login/login.go | 2 +- internal/cmd/auth/logout/logout.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/auth/auth.go b/internal/auth/auth.go index c31e59fd..e0e3ea99 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -63,7 +63,7 @@ func NewDebrickedAuthenticator(client client.IDebClient) Authenticator { TokenURL: client.Host() + "/app/oauth/token", }, RedirectURL: "http://localhost:9096/callback", - Scopes: []string{"select", "profile", "basicRepo"}, + Scopes: []string{"select", "profile", "basicRepo", "fullApi"}, }, AuthWebHelper: NewAuthWebHelper(), } diff --git a/internal/cmd/auth/login/login.go b/internal/cmd/auth/login/login.go index 4699f321..0fd0a14f 100644 --- a/internal/cmd/auth/login/login.go +++ b/internal/cmd/auth/login/login.go @@ -31,7 +31,7 @@ func RunE(a auth.IAuthenticator) func(_ *cobra.Command, args []string) error { return err } fmt.Printf( - "%s Successfully authenticated", + "%s Successfully authenticated\n", color.GreenString("✔"), ) diff --git a/internal/cmd/auth/logout/logout.go b/internal/cmd/auth/logout/logout.go index edc4a2af..eeac7d38 100644 --- a/internal/cmd/auth/logout/logout.go +++ b/internal/cmd/auth/logout/logout.go @@ -31,7 +31,7 @@ func RunE(a auth.IAuthenticator) func(_ *cobra.Command, args []string) error { return err } fmt.Printf( - "%s Successfully removed credentials", + "%s Successfully removed credentials\n", color.GreenString("✔"), )