I use booth Cognito User Pools and Cognito Identity Pools to sign-in user.
I want to achieve the simple task to sign-in a user on a iOS app, a Swift app.
My app is based on custom version of Mobile Hub Help to allow the use of Cognito User Pools. See A Swift Sample Sign-In App (using aws-mobile hub-helper) with Cognito User Pools
There is two steps in app: first one is only launch and second one is Sign-In after user touch a Sign-In button: user credentials are then hardcoded for sake of minimality.
During the first step, user have to received an unauthorized identityId. Then after second step, user received an auth identityId.
Before press signin, step 1, there is 2 requests to AWS:
After press signing there are 3 more requests:
Before request 5 — AWSCognitoIdentityService.GetId — user is signed-in, as indicated by observer on
After request 5, an IdentityId is retrieved. But immediately after user is signed-out according to observer on notification
What may happen?