Files
outline/server/routes/auth/providers
Tom Moor 33afa2f029 Plugin architecture (#4861)
* wip

* Refactor, tasks, processors, routes loading

* Move Slack settings config to plugin

* Fix translations in plugins

* Move Slack auth to plugin

* test

* Move other slack-related files into plugin

* Forgot to save

* refactor
2023-02-12 10:11:30 -08:00
..
2022-11-27 15:07:48 -08:00
2023-02-12 10:11:30 -08:00

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 strategy must call the accountProvisioner command in the verify callback
  • The auth file must export a config object with name and enabled keys
  • The auth file must have a default export with a koa-router