mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(GitHub Node): Update auth urls for enterprise server (#15533)
This commit is contained in:
@@ -28,7 +28,7 @@ export class GithubOAuth2Api implements ICredentialType {
|
||||
name: 'authUrl',
|
||||
type: 'hidden',
|
||||
default:
|
||||
'={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"]}}/login/oauth/authorize',
|
||||
'={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"].split("://")[0] + "://" + $self["server"].split("://")[1].split("/")[0]}}/login/oauth/authorize',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
@@ -36,7 +36,7 @@ export class GithubOAuth2Api implements ICredentialType {
|
||||
name: 'accessTokenUrl',
|
||||
type: 'hidden',
|
||||
default:
|
||||
'={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"]}}/login/oauth/access_token',
|
||||
'={{$self["server"] === "https://api.github.com" ? "https://github.com" : $self["server"].split("://")[0] + "://" + $self["server"].split("://")[1].split("/")[0]}}/login/oauth/access_token',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user