2/20/16

AngularJS SPA Auth Token Management

This is a presentation on AngularJS Single Page Application Jason Web Token Management. During the presentation we take a look at a NodeJS server application with both secured and unsecured APIs. We work on enhancement to  the client application, so that it can manage the jwt token by looking at the following areas:

  • After login read token from header
  • Decode (base64) the second segment (payload) which brings the claims
  • Store the token
    • Memory
    • localStorage
  • Approach for subsequent requests
    • Add to single $http request
    • Add to $HttpProvider common headers
    • Using $Http Interceptors

Presentation



Code
The code for this presentation can be found at this location:
Thanks

1 comment :

  1. Thank you for the presentation. It is helpful in understanding the challenges for web development in Single Page Application.

    ReplyDelete

What do you think?