Introduction
What OpenAuth is, what it does and where to start.
On this page
OpenAuth signs your users in with an outside account, such as Facebook, and hands your app their profile. Your app does not talk to the provider itself: it asks OpenAuth to start a sign-in, sends the user to the address OpenAuth gives back, and reads the profile when the user returns.
OpenAuth is an official Total.js app under the MIT license. The code is on GitHub.
What you can do
- Sign users in through OAuth 2.0 providers. Each provider is an extension; Facebook is included.
- Keep the provider keys (App ID and secret) in one place instead of in every app.
- Give each of your apps its own token.
- Get one profile format back: name, email, photo, the provider's access token and the raw answer of the provider.
- See recent sign-ins in Logs and the sign-ins in progress in Sessions.
How it fits together
- You add a provider in Extensions and enter its App ID and secret. See Set up a provider.
- You create a token for your app in App tokens.
- Your app sends
POST /to OpenAuth with the provider name, its own session ID and a return address. OpenAuth answers with a sign-in address. - Your app redirects the user there. The user signs in at the provider and comes back to your return address with
?sessionid=.... - Your app reads the profile from
GET /sessions/?id=....
How sign-in works shows every step in detail.
Where to go next
- Install OpenAuth from source or with Docker.
- Lock the admin interface: Protect the admin interface.
- Connect your first app: Sign in from a Node.js app.