From 107c0b1653a7ebbee2e624cd85863190e2a2bc3c Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Wed, 22 Oct 2025 15:55:07 +0200 Subject: [PATCH 1/2] TA-4444: Add package-manager scope, and update documentation. --- DOCUMENTATION.md | 5 ++--- src/core/profile/profile.service.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 1f54cc49..0d5d04ed 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -104,9 +104,8 @@ 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". +The OAuth client needs to have scopes configured based on the area of commands they're using, e.g.: 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). diff --git a/src/core/profile/profile.service.ts b/src/core/profile/profile.service.ts index a0afce5e..e68c26ec 100644 --- a/src/core/profile/profile.service.ts +++ b/src/core/profile/profile.service.ts @@ -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; From 7636c90a94955ee81d583a72c254d934f5b72a5b Mon Sep 17 00:00:00 2001 From: "j.kasabaqi" Date: Thu, 23 Oct 2025 15:51:21 +0200 Subject: [PATCH 2/2] TA-4444: remove example line --- DOCUMENTATION.md | 1 - 1 file changed, 1 deletion(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 0d5d04ed..9794b5d7 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -105,7 +105,6 @@ 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 client needs to have all four scopes configured: "studio", "integration.data-pools", "action-engine.projects" and "package-manager". -The OAuth client needs to have scopes configured based on the area of commands they're using, e.g.: 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).