mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ credentials update
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import {
|
||||
IAuthenticateHeaderAuth,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
@@ -28,4 +30,18 @@ export class GithubApi implements ICredentialType {
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
authenticate: IAuthenticateHeaderAuth = {
|
||||
type: 'headerAuth',
|
||||
properties: {
|
||||
name: 'Authorization',
|
||||
value: '=token {{$credentials?.accessToken}}',
|
||||
},
|
||||
};
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '={{$credentials?.server}}',
|
||||
url: '/user',
|
||||
method: 'GET',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user