2020-03-03 23:59:19 +01:00
|
|
|
import path from 'path';
|
2021-10-29 17:33:05 +02:00
|
|
|
|
2022-08-19 20:25:20 +02:00
|
|
|
import { getDefaultConfig } from '@verdaccio/config';
|
2020-03-03 23:59:19 +01:00
|
|
|
|
2022-08-19 20:25:20 +02:00
|
|
|
export const authProfileConf = {
|
|
|
|
...getDefaultConfig(),
|
2022-09-16 08:02:08 +02:00
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
2020-03-03 23:59:19 +01:00
|
|
|
auth: {
|
2022-09-16 08:02:08 +02:00
|
|
|
success: {},
|
2020-08-13 23:27:00 +02:00
|
|
|
},
|
2022-08-19 20:25:20 +02:00
|
|
|
};
|
2020-03-03 23:59:19 +01:00
|
|
|
|
2022-08-19 20:25:20 +02:00
|
|
|
export const authPluginFailureConf = {
|
|
|
|
...getDefaultConfig(),
|
2022-09-16 08:02:08 +02:00
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
2020-03-03 23:59:19 +01:00
|
|
|
auth: {
|
2022-09-16 08:02:08 +02:00
|
|
|
fail: {},
|
2020-08-13 23:27:00 +02:00
|
|
|
},
|
2022-08-19 20:25:20 +02:00
|
|
|
};
|
2020-03-03 23:59:19 +01:00
|
|
|
|
2022-08-19 20:25:20 +02:00
|
|
|
export const authPluginPassThrougConf = {
|
|
|
|
...getDefaultConfig(),
|
2022-09-16 08:02:08 +02:00
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
2020-03-03 23:59:19 +01:00
|
|
|
auth: {
|
2022-09-16 08:02:08 +02:00
|
|
|
passthroug: {},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const authFailInvalidMethod = {
|
|
|
|
...getDefaultConfig(),
|
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
|
|
auth: {
|
|
|
|
'fail-invalid-method': {},
|
2020-08-13 23:27:00 +02:00
|
|
|
},
|
2022-08-19 20:25:20 +02:00
|
|
|
};
|