From 04b39372b058e15eb06d7264d7985c50d84ca73c Mon Sep 17 00:00:00 2001 From: Joe Ceresini Date: Tue, 15 Sep 2020 19:32:41 -0400 Subject: [PATCH] Add scopes support to password grant type --- command/login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/login.go b/command/login.go index 3d320f5b3..c249fd22f 100644 --- a/command/login.go +++ b/command/login.go @@ -476,6 +476,7 @@ func (c *LoginCommand) interactiveGetTokenByPassword(hostname svchost.Hostname, oauthConfig := &oauth2.Config{ ClientID: clientConfig.ID, Endpoint: clientConfig.Endpoint(), + Scopes: clientConfig.Scopes, } token, err := oauthConfig.PasswordCredentialsToken(context.Background(), username, password) if err != nil {