mirror of https://github.com/databricks/cli.git
Make `bricks auth` use `all-apis` scope (#304)
## Changes Use `all-apis` scope, so that we can use the issued token for SCIM APIs. The production environment has to be tuned in order to enable `all-apis` scope for a specific account. ## Tests Manual
This commit is contained in:
parent
902813a490
commit
02d9f877b5
|
@ -201,18 +201,7 @@ func (a *PersistentAuth) oauth2Config() (*oauth2.Config, error) {
|
||||||
// taxonomy of all scopes ready and implemented.
|
// taxonomy of all scopes ready and implemented.
|
||||||
scopes := []string{
|
scopes := []string{
|
||||||
"offline_access",
|
"offline_access",
|
||||||
"unity-catalog",
|
"all-apis",
|
||||||
"accounts",
|
|
||||||
"clusters",
|
|
||||||
"mlflow",
|
|
||||||
"scim",
|
|
||||||
"sql",
|
|
||||||
}
|
|
||||||
if a.AccountID != "" {
|
|
||||||
scopes = []string{
|
|
||||||
"offline_access",
|
|
||||||
"accounts",
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
endpoints, err := a.oidcEndpoints()
|
endpoints, err := a.oidcEndpoints()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue