Renames oauth to authDataManager in src
This commit is contained in:
@@ -33,7 +33,7 @@ export class Config {
|
||||
this.pushController = cacheInfo.pushController;
|
||||
this.loggerController = cacheInfo.loggerController;
|
||||
this.userController = cacheInfo.userController;
|
||||
this.oauth = cacheInfo.oauth;
|
||||
this.authDataManager = cacheInfo.authDataManager;
|
||||
this.customPages = cacheInfo.customPages || {};
|
||||
this.mount = mount;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ RestWrite.prototype.handleOAuthAuthData = function(provider) {
|
||||
return;
|
||||
}
|
||||
|
||||
let validateAuthData = this.config.oauth.getValidatorForProvider(provider);
|
||||
let validateAuthData = this.config.authDataManager.getValidatorForProvider(provider);
|
||||
|
||||
if (!validateAuthData) {
|
||||
throw new Parse.Error(Parse.Error.UNSUPPORTED_SERVICE,
|
||||
|
||||
@@ -9,7 +9,7 @@ var batch = require('./batch'),
|
||||
middlewares = require('./middlewares'),
|
||||
multer = require('multer'),
|
||||
Parse = require('parse/node').Parse,
|
||||
oauthManager = require('./oauth');
|
||||
authDataManager = require('./authDataManager');
|
||||
|
||||
//import passwordReset from './passwordReset';
|
||||
import cache from './cache';
|
||||
@@ -165,7 +165,7 @@ function ParseServer({
|
||||
userController: userController,
|
||||
verifyUserEmails: verifyUserEmails,
|
||||
allowClientClassCreation: allowClientClassCreation,
|
||||
oauth: oauthManager(oauth, enableAnonymousUsers),
|
||||
authDataManager: authDataManager(oauth, enableAnonymousUsers),
|
||||
appName: appName,
|
||||
publicServerURL: publicServerURL,
|
||||
customPages: customPages,
|
||||
|
||||
Reference in New Issue
Block a user