Auth and OAuth2
The util-simple-auth
and util-oauth2
Foxx services have been replaced withthe Foxx auth andFoxx OAuth2 modules. It is no longer necessary to install theseservices as dependencies in order to use the functionality.
Old:
'use strict';
const auth = applicationContext.dependencies.simpleAuth;
// ...
const valid = auth.verifyPassword(authData, password);
New:
'use strict';
const createAuth = require('@arangodb/foxx/auth');
const auth = createAuth(); // Use default configuration
// ...
const valid = auth.verifyPassword(authData, password);