O'Reilly logo

AngularJS Services by Jim Lavin

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

Authentication using OAuth 2.0

The final cross-cutting service layer we are going to talk about is the authentication layer. The authentication layer is responsible for ensuring that the people interacting with our application are the people they say they are. There are several ways that someone can authenticate himself or herself with our application. They can use a basic username and password, they could use a certificate, or they can use an external authentication server that supports protocols such as OAuth and OpenID or they can use a two-factor authentication service such as Single Sign-On.

We are going to look at a service that frontends both a basic authentication service and OAuth 2.0 using the Google+ API. Since we haven't covered data ...

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