Request the register:client scope
@@ -199,7 +199,7 @@ func (o *Options) runDeviceCodeFlow() error {
if err != nil {
return err
}
- az.Scopes = append(az.Scopes, "offline_access") // TODO Where or what do we want to do here?
+ az.Scopes = append(az.Scopes, "register:clients", "offline_access") // TODO Where or what do we want to do here?
t, err := az.Token(context.Background(), o.generateValidatationRequest)
if err != nil {
@@ -214,7 +214,7 @@ func (o *Options) runAuthorizationCodeFlow() error {
if err != nil {
return err
}
- c.Scopes = append(c.Scopes, "offline_access") // TODO Where or what do we want to do here?
+ c.Scopes = append(c.Scopes, "register:clients", "offline_access") // TODO Where or what do we want to do here?
c.RedirectURL = "http://127.0.0.1:8085/"
// Create a context we can use to shutdown the server and the OAuth authorization code callback endpoint
