Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Security (oAuth 2.0)

jlchereau edited this page May 13, 2014 · 30 revisions

Our implementation efforts based on the following documentation raise questions (below) and are incomplete (TODOs below).

#Documentation

We have relied on the following documentation:

#Identity provider configuration

The configuration of oAuth 2.0 identity providers starts at:

Note: Create a redirection in %systemroot%\system32\drivers\etc\hosts (windows) in order to mock a public domain especially for Windows Live

#Questions

  1. Are there reasons to maintain a username + password in addition to oAuth 2.0 authentication like most sites (except identity providers' sites) do? At this stage, we have assumed that we could rely entirely on external identity providers.
  2. The code at https://github.com/jlchereau/Phonegap.Express/blob/master/api/routes/authentication.js might reinvent the wheel considering passport-oauth2 and derived modules including passport-facebook, passport-google-oauth and passport-windowslive but we could not really figure out how to use them alongside passport-http-bearer.
  3. Do we need refreshing tokens noting that Google and Windows Live tokens expire after 1 hour (3600 seconds) but can be refreshed and Facebook tokens have a much longer life span but cannot be refreshed?
  4. How is logout/signout different from revoking tokens?

#TODOs

The TODO list is maintained as a list of issues.

#Features (Use Cases)

??????

Clone this wiki locally