Skip to content

Commit

Permalink
Request extra scope for full API access (#274)
Browse files Browse the repository at this point in the history
Also fix some missing newlines.
  • Loading branch information
zozs authored Oct 25, 2024
1 parent 6be73c6 commit 5a0a9a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/auth/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("✔"),
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/auth/logout/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("✔"),
)

Expand Down

0 comments on commit 5a0a9a5

Please sign in to comment.