amazon web services - Example for using developers authentication(aws cognito) for android app -


i have been struggling understand how aws cognito should implemented in java android app user authentication. have seen github codes android code difficult me understand beginner android. can explain simple code? specially how user calls backendserver in java id.any simple explaination?

the basic idea have authentication server (backend) sole authority verify user credentials. high level flow be:

  1. the end user provide credentials(username , password) on android app.
  2. android app call backend verify credentials.
  3. backend call getopenidtokenfordeveloperidentity api of amazon cognito end-user (using username)
  4. cognito return identityid associated username , openid connect token backend , passed android app.
  5. cognito sdk use token call amazon sts aws credentials end user.

i highly encourage follow our blog post , developer guide, explains flow in depth. always, if have questions please feel free ask.

thanks.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -