spring boot web app for authentication/autorization using AWS Cognito Java API

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



spring boot web app for authentication/autorization using AWS Cognito Java API



AWS Cognito primarly meant for Serverless user authentication from Mobile or Web application (Javascript).



The primary concern is that, we need to do client implementation for each of the client like Android, IOS and Javascript.



Instead of that can we have spring boot server which will expose a login/signup/action rest endpoint for all the above clients where the spring boot will authenticate/signup with Congnito on behalf of the clients and send the access_token response back to the client. This way, Conginto integration will be done only in one place which is the Spring boot application.



Can we go ahead with this approach? Does AWS SDK supports Java for cognito access from Server?




1 Answer
1



Here's an article which shows an example of implementing a Spring boot application that is able to authenticate the user against Amazon Cognito using OAuth 2.0 authorization code grant and JSON Web Tokens.



This github repo contains the example code in Kotlin



Probably, this is in some ways, similar to your usecase.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard