Add scopes support to password grant type
This commit is contained in:
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…
Reference in New Issue