mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): make digest auth work with query params
* fixed NodeExecutionFunction digestAuthAxiosConfig using url search params * fixed linting error because auto format removed tabs
This commit is contained in:
@@ -512,7 +512,8 @@ function digestAuthAxiosConfig(
|
||||
.createHash('md5')
|
||||
.update(`${auth?.username as string}:${realm}:${auth?.password as string}`)
|
||||
.digest('hex');
|
||||
const path = new url.URL(axiosConfig.url!).pathname;
|
||||
const urlURL = new url.URL(axios.getUri(axiosConfig));
|
||||
const path = urlURL.pathname + urlURL.search;
|
||||
const ha2 = crypto
|
||||
.createHash('md5')
|
||||
.update(`${axiosConfig.method ?? 'GET'}:${path}`)
|
||||
|
||||
Reference in New Issue
Block a user