When I test relay API,using example figured in reference:
"import boto3
from warrant.aws_srp import AWSSRP
client = boto3.client(‘cognito-idp’)
aws = AWSSRP(username=‘API_KEY’, password=‘API_SECRET’, pool_id=‘us-west-2_iLmIggsiy’, client_id=‘1bpd19lcr33qvg5cr3oi79rdap’, client=client)
tokens = aws.authenticate_user()
print(‘Access Token’, tokens[‘AuthenticationResult’][‘AccessToken’])"
Environment
I got this error:
“botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the InitiateAuth operation: User pool client 1bpd19lcr33qvg5cr3oi79rdap does not exist.”
Details
I check same guide on aws,that said:
“This error should only be thrown if the client id you are passing actually does not exist.”
What I actually want ask is have the client_id of user_pool been changed?
Code to reproduce