mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix issue that GitHub OAuth did not use specified server
This commit is contained in:
parent
e981118316
commit
8528c2a2f1
|
@ -23,14 +23,14 @@ export class GithubOAuth2Api implements ICredentialType {
|
|||
displayName: 'Authorization URL',
|
||||
name: 'authUrl',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
default: 'https://github.com/login/oauth/authorize',
|
||||
default: '={{$parameter["server"] === "https://api.github.com" ? "https://github.com" : $parameter["server"]}}/login/oauth/authorize',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Access Token URL',
|
||||
name: 'accessTokenUrl',
|
||||
type: 'hidden' as NodePropertyTypes,
|
||||
default: 'https://github.com/login/oauth/access_token',
|
||||
default: '={{$parameter["server"] === "https://api.github.com" ? "https://github.com" : $parameter["server"]}}/login/oauth/access_token',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue