spring

How to authenticate user using AWS Cognito via Java API  #angularjs #reactjs

  • The backend service register an user with AWS Cognito.
  • The backend service validated the token with AWS Cognito.
  • I was thinking upon using my backend services to authenticate user using AWS Cognito.
  • The backend service will return a json response to client(iOS/Android and web) stating that user is created.
  • The backend service passes the email and password to AWS Cognito.

We are building up an iOS/android app with a Web(angular) portal(for management purpose). The backend API will be build using Java, considering web portal can have different types of users I was thinking about using Spring security.

@ng_real_ninja: How to authenticate user using AWS Cognito via Java API #angularjs #reactjs

We are building up an iOS/android app with a Web(angular) portal(for management purpose). The backend API will be build using Java, considering web portal can have different types of users I was thinking about using Spring security.

I was thinking upon using my backend services to authenticate user using AWS Cognito. I don’t want to integrate the iOS/Andorid/Web directly with AWS Cognito as in future we might need to switch to other providers.

I am not sure whether this is possible or not but was thinking about something like this: 1. Register API: iOS/Android/Web(with role) calls my backend service with email and password. The backend service register an user with AWS Cognito. AWS Cognito will return an Identifier for that user and the same identifier I will use in my local db to create a link b/w user and the roles and other tables. The backend service will return a json response to client(iOS/Android and web) stating that user is created.

I have gone through a lot of documentation of AWS Cognito but more I read more confused I get. It will be a great help if someone can let me know whether the above is possible through AWS Cognito or not and if it is, how can I proceed on that.

spring

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.