Add scopes support to password grant type

pull/26239/head
Joe Ceresini 6 years ago
parent 2ffa84a4de
commit 04b39372b0

@ -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 {

Loading…
Cancel
Save