Skip to content

Commit b992cd3

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

File tree

15 files changed

+8
-8
lines changed

15 files changed

+8
-8
lines changed

spec/OAuth.spec.js

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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.

0 commit comments

Comments
 (0)