Skip to content

DISCO-142: Add SDK Token Command - #447

Merged
Patrick Tamunjoh (patricktamunjoh) merged 4 commits into
mainfrom
feature/DISCO-142-add-sdk-token-command
Nov 2, 2026
Merged

Patrick Tamunjoh (patricktamunjoh) merged 4 commits into
mainfrom
feature/DISCO-142-add-sdk-token-command

Conversation

@patricktamunjoh

Copy link
Copy Markdown
Contributor

Description

Adds a beta content-cli sdk token command that prints a token with only the SDK read scope, used to authenticate against the npm registry.

  • ProfileService.acquireScopedToken: device code profiles refresh with the narrowed scope, store the rotated refresh token and are marked expired so later commands refresh with all scopes; client credentials profiles grant a scoped token without changing the profile; API key profiles fail.
  • sdk token command printing the raw token to stdout, so it can be used in scripts.
  • User guide and command graph updated.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

…-sdk-token-command

# Conflicts:
#	docs/command-graph.html
#	docs/user-guide/sdk-commands.md
#	src/commands/sdk/module.ts
#	tests/commands/sdk/module.spec.ts
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@patricktamunjoh

Copy link
Copy Markdown
Contributor Author

Zgjim Haziri (@ZgjimHaziri) anything blocking us moving forward with this?

@patricktamunjoh
Patrick Tamunjoh (patricktamunjoh) merged commit 472f920 into main Nov 2, 2026
5 checks passed
@patricktamunjoh
Patrick Tamunjoh (patricktamunjoh) deleted the feature/DISCO-142-add-sdk-token-command branch November 2, 2026 10:50
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