* wip * wip * fix comments * better separation of conerns * fix up tests * fix semantics * fixup tsc * fix some tests * the old semantics were easier to use * add db:reset to scripts * explicitly throw for unauthorized external authorization * fix minor bug * add additional tests for user creator and team creator * yank the email matching logic out of teamcreator * renaming * fix type and test errors * adds test to ensure that accountProvisioner works with email matching * remove only * fix comments * recreate changes to allow self hosted to make teams
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
accountProvisionercommand in the verify callback - The auth file must export a
configobject withnameandenabledkeys - The auth file must have a default export with a koa-router