O'Reilly logo

Serverless Single Page Apps by Ben Rady

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4Identity as a Service with Amazon Cognito

Identity is an essential concept in most applications. Any software that collects data from users must have some way to organize, access, and secure that data. In a traditional web app, the application server often manages identity through the use of browser cookies. Because of the rules that browsers enforce, cookies from different origins[39] are not shared. This means that if you have an application server that manages identity tokens using cookies, then all your other web services must share the same origin in order to access that cookie and authenticate the request.

However, if you treat identity management as just another web service, you can separate a lot of these concerns. Security ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required