-
Notifications
You must be signed in to change notification settings - Fork 886
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
AWSCognito and AWSS3 "Invalid login token." #5450
Comments
@MarcelHaldimann Would you be able to share verbose logs of the issue. Verbose logging can be enabled using the following code. This would help us determine where the problem possibly could be.
|
Hey @MarcelHaldimann , it seems you're using the wrong initializer for Instead, you should just use self.ilpCredentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType: self.cognitoRegion
identityProvider: ilpIdentityProvider]; Give it a try and if it still doesn't work, please provide the verbose logs as requested above. Thanks! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
State your question
I'm trying to get AWS Cognito up and running here. We have been using Cognito for many years and used a very old library from the Objective-C library which no longer works. Maybe I'm just doing something wrong, or I don't understand something correctly.
Perhaps anyone can point me in the right direction.
In general, I would like to create temporary access credentials for the users in the app. The users are assigned a special authorisation which gives them access to certain functions in the S3.
We have implemented the ‘GetOpenIdTokenForDeveloperIdentity’ on our server. This works without any problems, we receive a correct response from Cognito with IdentityId and token.
https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetOpenIdTokenForDeveloperIdentity.html
The ‘documentation’ now states that we have to implement our own IdentityProvider.
https://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html
I have done this and return the
- (AWSTask <NSString*> *) token {
my token which I receive from our backend.The rest is implemented like this:
I then instantiated an
AWSS3TransferUtility
:And if we now try to upload something to the cloud with the AWSS3TransferUtility, the following error messages appear:
Somehow I have the feeling that I have to log in again with the token to ‘cognito-identity.amazonaws.com’ with the token? Could that be? If so, can someone show me an example or a part of the documentation?
Which AWS Services are you utilizing?
AWSCognito
AWSS3
Environment(please complete the following information):
Device Information (please complete the following information):
I have done my best to find my way around the documentary but unfortunately it still doesn't work.
Thank you very much
Marcel
The text was updated successfully, but these errors were encountered: