Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ on your behalf.

With Client Credentials, you need to provide the credentials (Client ID, Client Secret) configured for your OAuth client.
You can create and configure an OAuth clients in the `Admin & Settings` section of your Celonis account, under `Applications`.
The OAuth client needs to have scopes configured based on the area of commands they're using, e.g.:
- For Studio commands: studio,
- Data Pipeline/Data Pool commands: integration.data-pools,
The client needs to have all four scopes configured: "studio", "integration.data-pools", "action-engine.projects" and "package-manager".
After creating an OAuth client, you should assign it the permissions necessary for the respective commands. More
information on registering OAuth clients can be found [here](https://docs.celonis.com/en/registering-oauth-client.html).

Expand Down
2 changes: 1 addition & 1 deletion src/core/profile/profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const homedir = os.homedir();
// use 5 seconds buffer to avoid rare cases when accessToken is just about to expire before the command is sent
const expiryBuffer = 5000;
const deviceCodeScopes = ["studio", "package-manager", "integration.data-pools", "action-engine.projects"];
const clientCredentialsScopes = ["studio", "integration.data-pools", "action-engine.projects"];
const clientCredentialsScopes = ["studio", "integration.data-pools", "action-engine.projects", "package-manager"];

export interface Config {
defaultProfile: string;
Expand Down