Skip to content

Commit b992cd3

Browse files
committed
Renames oauth to authDataManager in src
1 parent 849fcc6 commit b992cd3

15 files changed

+8
-8
lines changed

spec/OAuth.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var OAuth = require("../src/oauth/OAuth1Client");
1+
var OAuth = require("../src/authDataManager/OAuth1Client");
22
var request = require('request');
33

44
describe('OAuth', function() {
@@ -138,7 +138,7 @@ describe('OAuth', function() {
138138

139139
["facebook", "github", "instagram", "google", "linkedin", "meetup", "twitter"].map(function(providerName){
140140
it("Should validate structure of "+providerName, (done) => {
141-
var provider = require("../src/oauth/"+providerName);
141+
var provider = require("../src/authDataManager/"+providerName);
142142
jequal(typeof provider.validateAuthData, "function");
143143
jequal(typeof provider.validateAppId, "function");
144144
jequal(provider.validateAuthData({}, {}).constructor, Promise.prototype.constructor);

spec/RestCreate.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ describe('rest create', () => {
149149

150150
it('handles no anonymous users config', (done) => {
151151
var NoAnnonConfig = Object.assign({}, config);
152-
NoAnnonConfig.oauth.setEnableAnonymousUsers(false);
152+
NoAnnonConfig.authDataManager.setEnableAnonymousUsers(false);
153153
var data1 = {
154154
authData: {
155155
anonymous: {

spec/helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jasmine.DEFAULT_TIMEOUT_INTERVAL = 2000;
55
var cache = require('../src/cache').default;
66
var DatabaseAdapter = require('../src/DatabaseAdapter');
77
var express = require('express');
8-
var facebook = require('../src/oauth/facebook');
8+
var facebook = require('../src/authDataManager/facebook');
99
var ParseServer = require('../src/index').ParseServer;
1010
var path = require('path');
1111

src/Config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class Config {
3333
this.pushController = cacheInfo.pushController;
3434
this.loggerController = cacheInfo.loggerController;
3535
this.userController = cacheInfo.userController;
36-
this.oauth = cacheInfo.oauth;
36+
this.authDataManager = cacheInfo.authDataManager;
3737
this.customPages = cacheInfo.customPages || {};
3838
this.mount = mount;
3939
}

src/RestWrite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ RestWrite.prototype.handleOAuthAuthData = function(provider) {
231231
return;
232232
}
233233

234-
let validateAuthData = this.config.oauth.getValidatorForProvider(provider);
234+
let validateAuthData = this.config.authDataManager.getValidatorForProvider(provider);
235235

236236
if (!validateAuthData) {
237237
throw new Parse.Error(Parse.Error.UNSUPPORTED_SERVICE,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var batch = require('./batch'),
99
middlewares = require('./middlewares'),
1010
multer = require('multer'),
1111
Parse = require('parse/node').Parse,
12-
oauthManager = require('./oauth');
12+
authDataManager = require('./authDataManager');
1313

1414
//import passwordReset from './passwordReset';
1515
import cache from './cache';
@@ -165,7 +165,7 @@ function ParseServer({
165165
userController: userController,
166166
verifyUserEmails: verifyUserEmails,
167167
allowClientClassCreation: allowClientClassCreation,
168-
oauth: oauthManager(oauth, enableAnonymousUsers),
168+
authDataManager: authDataManager(oauth, enableAnonymousUsers),
169169
appName: appName,
170170
publicServerURL: publicServerURL,
171171
customPages: customPages,

0 commit comments

Comments
 (0)