From 831453b8c393bcdf31fb3d72faccc8a3035837b5 Mon Sep 17 00:00:00 2001 From: Eirik Nygaard Date: Thu, 24 Feb 2022 11:34:39 +0100 Subject: Make Auth0 device flow Default authentication for deploy service Fall back to using tenant api keys if no auth0 system is configured This is to maintain backwards compatibility while users migrate over to Auth0 device flow. Falling back to tenant api keys issue a deprecation warning asking the user to setup the Auth0 device flow, and will be removed at a later time. --- client/go/cmd/login.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'client/go/cmd/login.go') diff --git a/client/go/cmd/login.go b/client/go/cmd/login.go index f4438cdbb24..8787f1f80f5 100644 --- a/client/go/cmd/login.go +++ b/client/go/cmd/login.go @@ -3,7 +3,6 @@ package cmd import ( "github.com/spf13/cobra" "github.com/vespa-engine/vespa/client/go/auth0" - "github.com/vespa-engine/vespa/client/go/vespa" ) var loginCmd = &cobra.Command{ @@ -24,16 +23,6 @@ var loginCmd = &cobra.Command{ return err } _, err = auth0.RunLogin(ctx, a, false) - if vespa.Auth0AccessTokenEnabled() { - if err == nil { - if err := cfg.Set(cloudAuthFlag, "access-token"); err != nil { - return err - } - if err := cfg.Write(); err != nil { - return err - } - } - } return err }, } -- cgit v1.2.3