mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
9fc2e79611
* feat(plugin): implement scope package support plugins * feat(plugin): improve plugin loader * chore: fix build * chore: cover config path case * chore: async ui thene plugin * chore: store async plugin * chore: refactor plugin loader auth * feat: filter refactoring * chore: remove old plugin loader * chore: add changeset * chore: add docs * chore: refactor relative plugin loader * Update user.jwt.spec.ts * Update user.jwt.spec.ts
35 lines
711 B
TypeScript
35 lines
711 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 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': {},
|
|
},
|
|
};
|