Skip to content

Commit

Permalink
fixup! Apply GitHub server flag when resolving factory URL
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed Jul 25, 2024
1 parent 53400ca commit bf2c4ac
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ public abstract class AbstractGithubURLParser {
this.apiClient = githubApiClient;
this.disableSubdomainIsolation = disableSubdomainIsolation;
this.providerName = providerName;
// Check if the given OAuth endpoint is a GitHub server URL. If the OAuth endpoint is not
// defined, or it equals the GitHub SaaS endpoint, it means that the given URL is a GitHub SaaS
// URL (https://github.com). Otherwise, the given URL is a GitHub server URL.
this.isGitHubServer =
!isNullOrEmpty(oauthEndpoint) && !GITHUB_SAAS_ENDPOINT.equals(oauthEndpoint);

Expand Down

0 comments on commit bf2c4ac

Please sign in to comment.