Skip to content

Commit 8e74805

Browse files
committed
wip
1 parent 0d745d3 commit 8e74805

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

spec/AuthenticationAdapters.spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const responses = {
1818
microsoft: { id: 'userId', mail: 'userMail' },
1919
};
2020

21-
fdescribe('AuthenticationProviders', function () {
21+
describe('AuthenticationProviders', function () {
2222
[
2323
'apple',
2424
'gcenter',
@@ -605,7 +605,7 @@ fdescribe('AuthenticationProviders', function () {
605605
});
606606
});
607607

608-
fdescribe('instagram auth adapter', () => {
608+
describe('instagram auth adapter', () => {
609609
const instagram = require('../lib/Adapters/Auth/instagram');
610610
const httpsRequest = require('../lib/Adapters/Auth/httpsRequest');
611611

@@ -645,7 +645,7 @@ fdescribe('instagram auth adapter', () => {
645645
});
646646
});
647647

648-
fdescribe('google auth adapter', () => {
648+
describe('google auth adapter', () => {
649649
const google = require('../lib/Adapters/Auth/google');
650650
const jwt = require('jsonwebtoken');
651651
const authUtils = require('../lib/Adapters/Auth/utils');
@@ -767,7 +767,7 @@ fdescribe('google auth adapter', () => {
767767
});
768768
});
769769

770-
fdescribe('google play games service auth', () => {
770+
describe('google play games service auth', () => {
771771
const gpgames = require('../lib/Adapters/Auth/gpgames');
772772
const httpsRequest = require('../lib/Adapters/Auth/httpsRequest');
773773

@@ -796,7 +796,7 @@ fdescribe('google play games service auth', () => {
796796
});
797797
});
798798

799-
fdescribe('keycloak auth adapter', () => {
799+
describe('keycloak auth adapter', () => {
800800
const keycloak = require('../lib/Adapters/Auth/keycloak');
801801
const httpsRequest = require('../lib/Adapters/Auth/httpsRequest');
802802

@@ -1024,7 +1024,7 @@ fdescribe('keycloak auth adapter', () => {
10241024
});
10251025
});
10261026

1027-
fdescribe('oauth2 auth adapter', () => {
1027+
describe('oauth2 auth adapter', () => {
10281028
const oauth2 = require('../lib/Adapters/Auth/oauth2');
10291029
const httpsRequest = require('../lib/Adapters/Auth/httpsRequest');
10301030

@@ -1451,7 +1451,7 @@ fdescribe('oauth2 auth adapter', () => {
14511451
});
14521452
});
14531453

1454-
fdescribe('apple signin auth adapter', () => {
1454+
describe('apple signin auth adapter', () => {
14551455
const apple = require('../lib/Adapters/Auth/apple');
14561456
const jwt = require('jsonwebtoken');
14571457
const util = require('util');
@@ -1778,7 +1778,7 @@ fdescribe('apple signin auth adapter', () => {
17781778
});
17791779
});
17801780

1781-
fdescribe('Apple Game Center Auth adapter', () => {
1781+
describe('Apple Game Center Auth adapter', () => {
17821782
const gcenter = require('../lib/Adapters/Auth/gcenter');
17831783
const fs = require('fs');
17841784
const testCert = fs.readFileSync(__dirname + '/support/cert/game_center.pem');
@@ -1974,7 +1974,7 @@ fdescribe('Apple Game Center Auth adapter', () => {
19741974
});
19751975
});
19761976

1977-
fdescribe('phant auth adapter', () => {
1977+
describe('phant auth adapter', () => {
19781978
const httpsRequest = require('../lib/Adapters/Auth/httpsRequest');
19791979

19801980
it('validateAuthData should throw for invalid auth', async () => {
@@ -1994,7 +1994,7 @@ fdescribe('phant auth adapter', () => {
19941994
});
19951995
});
19961996

1997-
fdescribe('microsoft graph auth adapter', () => {
1997+
describe('microsoft graph auth adapter', () => {
19981998
const microsoft = require('../lib/Adapters/Auth/microsoft');
19991999
const httpsRequest = require('../lib/Adapters/Auth/httpsRequest');
20002000

@@ -2022,7 +2022,7 @@ fdescribe('microsoft graph auth adapter', () => {
20222022
});
20232023
});
20242024

2025-
fdescribe('facebook limited auth adapter', () => {
2025+
describe('facebook limited auth adapter', () => {
20262026
const facebook = require('../lib/Adapters/Auth/facebook');
20272027
const jwt = require('jsonwebtoken');
20282028
const util = require('util');

spec/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ on_db(
8282
);
8383

8484
let logLevel;
85-
let silent = false;
85+
let silent = true;
8686
if (process.env.VERBOSE) {
8787
silent = false;
8888
logLevel = 'verbose';

src/Adapters/Auth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function loadAuthAdapter(provider, authOptions) {
154154
return;
155155
}
156156

157+
const adapter = Object.assign({}, defaultAdapter);
157158
const keys = [
158159
'validateAuthData',
159160
'validateAppId',
@@ -163,7 +164,6 @@ function loadAuthAdapter(provider, authOptions) {
163164
'challenge',
164165
'policy'
165166
];
166-
const adapter = defaultAdapter;
167167
const defaultAuthAdapter = new AuthAdapter();
168168
keys.forEach(key => {
169169
const existing = adapter?.[key];

0 commit comments

Comments
 (0)