mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
f047cc8c25
* refactor: auth with legacy sign support refactor: auth with legacy sign support add tests add tests clean up lock fil clean up lock fil add more ci to test update ci update ci update ci update ci update ci * chore: add test for deprecated legacy signature * chore: add test for deprecated legacy signature * chore: add test for deprecated legacy signature * chore: add test for deprecated legacy signature * chore: add test for deprecated legacy signature
43 lines
877 B
TypeScript
43 lines
877 B
TypeScript
import path from 'path';
|
|
|
|
import { getDefaultConfig } from '@verdaccio/config';
|
|
|
|
export const authProfileConf = {
|
|
...getDefaultConfig(),
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
auth: {
|
|
success: {},
|
|
},
|
|
};
|
|
|
|
export const authChangePasswordConf = {
|
|
...getDefaultConfig(),
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
auth: {
|
|
'change-password': {},
|
|
},
|
|
};
|
|
|
|
export const authPluginFailureConf = {
|
|
...getDefaultConfig(),
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
auth: {
|
|
fail: {},
|
|
},
|
|
};
|
|
|
|
export const authPluginPassThrougConf = {
|
|
...getDefaultConfig(),
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
auth: {
|
|
passthroug: {},
|
|
},
|
|
};
|
|
|
|
export const authFailInvalidMethod = {
|
|
...getDefaultConfig(),
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
auth: {
|
|
'fail-invalid-method': {},
|
|
},
|
|
};
|