You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when assuming a role where the cache of the sso session is expired:
[15-08-2024 19:10:26] [INFO] Assuming role: Website/AdministratorAccess
[✘] error refreshing AWS IAM Identity Center token: operation error SSO OIDC: CreateToken, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , request send failed, Post "https://oidc.eu-west-1.amazonaws.com/token": tls: failed to verify certificate: x509: certificate is valid for *.webio.com, not oidc.eu-west-1.amazonaws.com
then I need to reload my terminal and this happens when assuming the role:
[15-08-2024 19:10:40] [INFO] Assuming role: Website/AdministratorAccess
[✘] error refreshing AWS IAM Identity Center token: operation error SSO OIDC: CreateToken, https response error StatusCode: 400, RequestID: b380066b-4c50-4560-aaa8-9cad12eec5fb, InvalidGrantException:
[i] If the browser does not open automatically, please open this link: https://device.sso.eu-west-1.amazonaws.com/?user_code=TMWD-JPNH
[i] Awaiting AWS authentication in the browser
[i] You will be prompted to authenticate with AWS in the browser, then you will be prompted to 'Allow'
[i] Code: TMWD-JPNH
then I can sign into sso and it works again.
For debuggin purpose I ran the granted docter command:
❯ granted doctor
[i] Checking your Granted and AWS local configurations to look for common issues...
? Please select the profile you would like to assume: Website/AdministratorAccess
[i] profile selected: Website/AdministratorAccess
[i] profile SSO start URL: https://d-<replaced>.awsapps.com/start
[i] profile region:
[i] Granted doctor will now check the default sso token cache (`~/.aws/sso/cache`), Granted secure storage, and the AWS credentials file to valiate cached tokens.
[i] Checking all cached credentials in `/.aws/sso/cache`
[i] No valid cached credentials found in `/.aws/sso/cache`
[i] Checking all cached tokens in secure storage
[✔] [VALID] Credentials found for are still valid
[!] [INFO] no cached tokens in secure storage found
[i] Checking commonly found issues in Granted configuration
[!] [INFO] DefaultExportAllEnvVar set to true. Automatic credential renewal is disabled.
[✔] Granted Doctor has completed, see diagnostics above
I'm getting the following error when assuming a role where the cache of the sso session is expired:
then I need to reload my terminal and this happens when assuming the role:
then I can sign into sso and it works again.
For debuggin purpose I ran the
granted docter
command:these are my granted settings:
this is the aws config profile:
Did I mess something up in my settings or is it a bug?
The text was updated successfully, but these errors were encountered: