mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
⚡ Ignore credentials endpoint in Auth (#966)
This commit is contained in:
parent
b90f4fb3f6
commit
4056b6861c
|
@ -172,7 +172,8 @@ class App {
|
|||
async config(): Promise<void> {
|
||||
|
||||
this.versions = await GenericHelpers.getVersions();
|
||||
const authIgnoreRegex = new RegExp(`^\/(healthz|${this.endpointWebhook}|${this.endpointWebhookTest})\/?.*$`);
|
||||
const ignoredEndpoints = _(['healthz', this.endpointWebhook, this.endpointWebhookTest, this.endpointPresetCredentials]).compact().join('|');
|
||||
const authIgnoreRegex = new RegExp(`^\/(${ignoredEndpoints})\/?.*$`);
|
||||
|
||||
// Check for basic auth credentials if activated
|
||||
const basicAuthActive = config.get('security.basicAuth.active') as boolean;
|
||||
|
|
Loading…
Reference in a new issue