Fix bad change

This commit is contained in:
joel.tazzari 2026-04-17 09:08:20 +02:00
parent 63cc3bf8f8
commit beb64d409c
1 changed files with 2 additions and 1 deletions

View File

@ -86,9 +86,10 @@ public class GithubOAuth2Provider extends AdapterBase implements UserOAuth2Authe
protected String getAccessToken(String secretCode) throws CloudRuntimeException {
OauthProviderVO githubProvider = _oauthProviderDao.findByProvider(getName());
String tokenUrl = "https://github.com/login/oauth/access_token";
String generatedAccessToken = null;
try {
URL url = new URL(githubProvider.getTokenUrl());
URL url = new URL(tokenUrl);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/json");