add oauth flows, profile, logout page, and index page

This commit is contained in:
cleverbeagle 2017-05-29 22:02:22 -05:00
parent 650c93273a
commit b0270cc98b
31 changed files with 449 additions and 162 deletions

View file

@ -0,0 +1,2 @@
import './oauth';
import './email-templates';

View file

@ -0,0 +1,13 @@
import { Meteor } from 'meteor/meteor';
import { ServiceConfiguration } from 'meteor/service-configuration';
const OAuthSettings = Meteor.settings.private.OAuth;
if (OAuthSettings) {
Object.keys(OAuthSettings).forEach((service) => {
ServiceConfiguration.configurations.upsert(
{ service },
{ $set: OAuthSettings[service] },
);
});
}

View file

@ -0,0 +1,7 @@
import { Accounts } from 'meteor/accounts-base';
Accounts.onCreateUser((options, user) => {
const userToCreate = user;
if (options.profile) userToCreate.profile = options.profile;
return userToCreate;
});

View file

@ -1,5 +1,7 @@
import '../../api/Documents/methods';
import '../../api/Documents/server/publications';
import '../../api/OAuth/server/methods';
import '../../api/Users/server/methods';
import '../../api/Users/server/publications';