his is just a very basic sample application so I could play around and deal with a single-page's app security. An oauth provider(facebook and google) are used to authorize a user. Angular frontend uses the generated token for signing the requests.