Spanish Total.js
English
Documentation For AI agents
Contents

Introduction

What OpenAuth is, what it does and where to start.

.md GitHub
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

  1. You add a provider in Extensions and enter its App ID and secret. See Set up a provider.
  2. You create a token for your app in App tokens.
  3. 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.
  4. Your app redirects the user there. The user signs in at the provider and comes back to your return address with ?sessionid=....
  5. Your app reads the profile from GET /sessions/?id=....

How sign-in works shows every step in detail.

Where to go next

Made in Europe