Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response signature invalid (u2f) #270

Open
GingaNinja opened this issue Nov 22, 2022 · 3 comments
Open

response signature invalid (u2f) #270

GingaNinja opened this issue Nov 22, 2022 · 3 comments

Comments

@GingaNinja
Copy link

This has been working fine and then it stopped working this morning. I'm not aware that I have done anything different, but I'm now getting the following error when running the command aws-google-auth -k -p ___ -r arn:aws:iam::___:role/___ --bg-response js_enabled:

ERROR:root:An error occurred (InvalidIdentityToken) when calling the AssumeRoleWithSAML operation: Response signature invalid
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/aws_google_auth/__init__.py", line 79, in cli
    process_auth(args, config)
  File "/opt/homebrew/lib/python3.10/site-packages/aws_google_auth/__init__.py", line 279, in process_auth
    print("Credentials Expiration: " + format(amazon_client.expiration.astimezone(get_localzone())))
  File "/opt/homebrew/lib/python3.10/site-packages/aws_google_auth/amazon.py", line 64, in expiration
    return self.token['Credentials']['Expiration']
  File "/opt/homebrew/lib/python3.10/site-packages/aws_google_auth/amazon.py", line 44, in token
    self.__token = self.assume_role(self.config.role_arn,
  File "/opt/homebrew/lib/python3.10/site-packages/aws_google_auth/amazon.py", line 117, in assume_role
    res = self.sts_client.assume_role_with_saml(**sts_call_vars)
  File "/opt/homebrew/lib/python3.10/site-packages/botocore/client.py", line 514, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/homebrew/lib/python3.10/site-packages/botocore/client.py", line 934, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidIdentityTokenException: An error occurred (InvalidIdentityToken) when calling the AssumeRoleWithSAML operation: Response signature invalid
Assuming arn:aws:iam::___:role/___
@kriation
Copy link
Contributor

@GingaNinja
Copy link
Author

ah thanks for that. It looks like that was indeed the problem!

@kriation
Copy link
Contributor

Happy to help! Can you close this issue?

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

No branches or pull requests

2 participants