The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Alfredo (1) [Avatar] Offline
#1
Hi,

In Chapter 6 (6.3 Integrating custom authentications)

The flow is described as:

4 The client application receives the authentication token returned by Cognito from the custom authentication service.

5 The client application sends the identity pool ID and the authentication token to Amazon Cognito to get an Identity ID.

6 If the authentication token (originally generated by Cognito) is valid, the client application receives a unique Identity ID for the authenticated user that will follow across any device (smartphone, tablet, web browser) where the same authentication is used. The client application can also get temporary AWS cre- dentials to assume the authenticated role used by this identity pool.


But, in the example of chapter 10 (10.3 Logging in users, Listings 10.10 and 10.11), I see that after step four, we have a token and an IdentityId already, so I am a little bit confused about steps 5 and 6...

Is the example following a different flow actually?

B.R.