Skip to content

fix(auth): support env-based authentication in commands reading the stored session - #1704

Open
JorTurFer wants to merge 1 commit into
stackitcloud:mainfrom
JorTurFer:fix/env-auth-session
Open

JorTurFer wants to merge 1 commit into
stackitcloud:mainfrom
JorTurFer:fix/env-auth-session

Conversation

@JorTurFer

Copy link
Copy Markdown
Contributor

Description

Commands that read the stored session now also work when authenticating only through environment variables.

closes #1703

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

🤖 Generated with Claude Code

…tored session

Closes stackitcloud#1703

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@JorTurFer
JorTurFer requested a review from a team as a code owner October 26, 2026 22:04
@JorTurFer

JorTurFer commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

I've tested in my devops and looks as fixed

- script: |
    stackit auth activate-service-account --use-oidc
    stackit project list
  displayName: 'Test'
  env:
    SYSTEM_ACCESSTOKEN: $(System.AccessToken)
    STACKIT_USE_OIDC: 1
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Env-based authentication fails for commands that read the stored session

2 participants