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
When using CognitoIdentityCredentials, the logins passed in in the initializer are not used when getting credentials from AWS, so the request appears as unauthenticated. Unless I am misunderstanding what this class does, it should be including those logins with the requests to get credentials.
If instead you do almost exactly what CognitoIdentityCredentials is doing except including logins:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
When using CognitoIdentityCredentials, the
logins
passed in in the initializer are not used when getting credentials from AWS, so the request appears as unauthenticated. Unless I am misunderstanding what this class does, it should be including those logins with the requests to get credentials.If instead you do almost exactly what
CognitoIdentityCredentials
is doing except including logins:It successfully fetches credentials.
Expected Behavior
The logins passed in are included with the call to
get_credentials_for_identity
.Current Behavior
The logins are not passed in when calling
get_credentials_for_identity
so you receive the following error:Reproduction Steps
Steps to reproduce:
CognitoIdentityCredentials
provider and includelogins
. Eg:Unauthenticated access is not supported for this identity pool.
Possible Solution
Add
logins
to the refresh function here:https://github.com/aws/aws-sdk-ruby/blob/903cfb08e01e439c8d115ad8f6428a7539f7b142/gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/customizations/cognito_identity_credentials.rb#L122C20-L122C20
eg.
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-cognitoidentity (1.49.0)
Environment details (Version of Ruby, OS environment)
Ruby 3.2.2, OS: Mac OSX
The text was updated successfully, but these errors were encountered: