This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/auth
Tom Moor 5d6f68d399
feat: Move to passport for authentication (#1934)
- Added `accountProvisioner`
- Move authentication to use passport strategies
- Make authentication more pluggable
- Change language of services -> providers

closes #1120
2021-03-11 10:02:22 -08:00
..
README.md feat: Move to passport for authentication (#1934) 2021-03-11 10:02:22 -08:00
email.js feat: Move to passport for authentication (#1934) 2021-03-11 10:02:22 -08:00
google.js feat: Move to passport for authentication (#1934) 2021-03-11 10:02:22 -08:00
index.js feat: Move to passport for authentication (#1934) 2021-03-11 10:02:22 -08:00
slack.js feat: Move to passport for authentication (#1934) 2021-03-11 10:02:22 -08:00

README.md

Authentication Providers

A new auth provider can be added with the addition of a single file in this folder, and (optionally) a matching logo in /app/components/AuthLogo/index.js that will appear on the signin button.

Auth providers generally use Passport strategies, although they can use any custom logic if needed. See the google auth provider for the cleanest example of what is required some rules:

  • The strategy name must be lowercase
  • The stragegy must call the accountProvisioner command in the verify callback
  • The auth file must export a config object with name and enabled keys