Skip to content

Get-CAAuthorizationToken is throwing error #296

Answered by ashishdhingra
rjacquemin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rjacquemin,

Good afternoon.

If we follow the steps properly, the issue is not reproducible in the latest AWS Tools for PowerShell version. The issue occurs if aws sso login command is not executed before calling Get-CAAuthorizationToken. For testing, I did not use the said Docker image, instead I tested it locally. Here is the screenshot:

  • Executed Get-CAAuthorizationToken without executing aws sso login. Got the said error reported by you.
  • Then executed aws sso login and approved the login in the web browser.
  • Re-executed Get-CAAuthorizationToken. It ran successfully.

Few points to notice:

  • You are running the Get-CAAuthorizationToken in the said docker image. Do you have AWS CLI in…

Replies: 10 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ashishdhingra
Comment options

@ashishdhingra
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. module/powershell-cmdlets
2 participants
Converted from issue

This discussion was converted from issue #288 on November 04, 2022 22:13.