feat: Deprecation DEPPS6: Authentication adapters disabled by default (#8858)

BREAKING CHANGE: Authentication adapters are disabled by default; to use an authentication adapter it needs to be explicitly enabled in the Parse Server authentication adapter option `auth.<provider>.enabled: true`
This commit is contained in:
Onur
2024-02-15 03:28:09 +03:00
committed by GitHub
parent 0e9b6d69ef
commit 0cf58eb8d6
5 changed files with 3 additions and 24 deletions

View File

@@ -589,20 +589,6 @@ describe('AuthenticationProviders', function () {
new Parse.Error(Parse.Error.UNSUPPORTED_SERVICE, 'This authentication method is unsupported.')
);
});
it('can deprecate', async () => {
await reconfigureServer();
const Deprecator = require('../lib/Deprecator/Deprecator');
const spy = spyOn(Deprecator, 'logRuntimeDeprecation').and.callFake(() => {});
const provider = getMockMyOauthProvider();
Parse.User._registerAuthenticationProvider(provider);
await Parse.User._logInWith('myoauth');
expect(spy).toHaveBeenCalledWith({
usage: 'Using the authentication adapter "myoauth" without explicitly enabling it',
solution:
'Enable the authentication adapter by setting the Parse Server option "auth.myoauth.enabled: true".',
});
});
});
describe('instagram auth adapter', () => {