[grade=B] feat(auth): onboard missing credentials into encrypted vault
This commit is contained in:
@@ -263,9 +263,10 @@ module.exports = function({
|
||||
const arrKey = await credentialManager.retrieve(`arr.${serviceId}.apikey`).catch(() => null);
|
||||
const svcKey = await credentialManager.retrieve(`service.${serviceId}.apikey`).catch(() => null);
|
||||
const username = await credentialManager.retrieve(`service.${serviceId}.username`).catch(() => null);
|
||||
const password = await credentialManager.retrieve(`service.${serviceId}.password`).catch(() => null);
|
||||
success(res, {
|
||||
hasApiKey: !!(arrKey || svcKey),
|
||||
hasBasicAuth: !!username,
|
||||
hasBasicAuth: !!username && !!password,
|
||||
username: username || null
|
||||
});
|
||||
}, 'service-creds'));
|
||||
|
||||
Reference in New Issue
Block a user