mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(core) Simplify authentication type (#3578)
* ⚡ Add generic auth type * ⚡ Remove queryAuth * ⚡ Remove bearer * ⚡ Remove headerAuth * ⚡ Remove basicAuth * ⚡ Adjust tests * ⚡ Small improvements * 👕 Fix lint issue
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
IAuthenticateHeaderAuth,
|
||||
IAuthenticateGeneric,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
@@ -26,11 +26,13 @@ export class HttpHeaderAuth implements ICredentialType {
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
authenticate = {
|
||||
type: 'headerAuth',
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
name: '={{credentials.name}}',
|
||||
value: '={{credentials.value}}',
|
||||
headers: {
|
||||
'={{$credentials.name}}': '={{$credentials.value}}',
|
||||
},
|
||||
},
|
||||
} as IAuthenticateHeaderAuth;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user