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/routes/auth/providers
Tom Moor 801f6681ba
Collaborative editing (#1660)
2021-09-10 22:46:57 -07:00
..
README.md chore: Move all routes under routes directory (#2513) 2021-08-29 13:25:06 -07:00
azure.js chore: Move all routes under routes directory (#2513) 2021-08-29 13:25:06 -07:00
email.js chore: Move all routes under routes directory (#2513) 2021-08-29 13:25:06 -07:00
email.test.js chore: Move all routes under routes directory (#2513) 2021-08-29 13:25:06 -07:00
google.js chore: Move all routes under routes directory (#2513) 2021-08-29 13:25:06 -07:00
index.js chore: Move all routes under routes directory (#2513) 2021-08-29 13:25:06 -07:00
oidc.js Move OIDC provider to routes directory 2021-09-02 19:55:06 -07:00
slack.js Collaborative editing (#1660) 2021-09-10 22:46:57 -07: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 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