14 lines
475 B
JavaScript
14 lines
475 B
JavaScript
import { discourseProvider } from './providers/discourse';
|
|
|
|
// Registry of authorization providers keyed by integration type. Adding a new
|
|
// provider is a matter of implementing `prepare`/`complete` and registering it
|
|
// here; the transport (web redirect vs. extension web-auth flow) is handled
|
|
// separately by the authorization service.
|
|
export const providers = {
|
|
discourse: discourseProvider,
|
|
};
|
|
|
|
export function providerFor(type) {
|
|
return providers[type] ?? null;
|
|
}
|