Skip to content

Conversation

statianzo
Copy link
Collaborator

Adds support for specifying scope when creating Domo SDK client. scope is a list of scope names such as ["data", "user", "account"].

This allows limiting the scope of access tokens to a subset of the scopes granted on the API client. Not specifying scope maintains the default behavior of access tokens having the same scopes as the API client.

Example

domo = Domo('client-id','secret',api_host='api.domo.com', scope=['data'])
domo.ds_get('2f09a073-54a4-4269-8c62-b776e67d59f0') # works

domo.users.get(123) # fails, no "user" scope

Adds support for specifying `scope` when creating `Domo` SDK client.
`scope` is a list of scope names such as `["data", "user", "account"]`.

This allows limiting the scope of access tokens to a subset of the
scopes granted on the API client. Not specifying `scope` maintains the
default behavior of access tokens having the same scopes as the API
client.
@statianzo
Copy link
Collaborator Author

@jeremydmorris

Copy link

@Falcc Falcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see anything concerning, and your confirmation of backwards compatibility should scope not be specified is appropriate.

@statianzo statianzo merged commit 1cfafdf into master Apr 4, 2024
@statianzo statianzo deleted the scope-support branch April 4, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants