-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add USER_AGENT header to OAuthHandler requests #15733
base: develop
Are you sure you want to change the base?
Conversation
Branch based off of #15729 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are compilation failures in the build. Can you please build the module locally and fix the issues?
mvn clean install -DskipTests
should work.
|
||
public PutOAuthProviderRequest(String loginURL, String tokenRefreshURL, String clientId, String clientSecret) { | ||
public PutOAuthProviderRequest(String loginURL, String tokenRefreshURL, String clientId, String clientSecret, OAuthProviderRequest.CredentialEncodingStrategy strategy) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkstyle NIT : limit to 80 chars length.
} catch (MalformedURLException e) { | ||
throw new OAuthServiceException(HttpURLConnection.HTTP_INTERNAL_ERROR, "Malformed URL", e); | ||
} | ||
} | ||
|
||
private String getBasicAuthHeader(OAuthClientCredentials clientCreds) { | ||
return String.format("Basic %s", Base64.getEncoder().encode(String.format("%s:%s", clientCreds.getClientId(), clientCreds.getClientSecret()).getBytes())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkstyle NIT : limit to 80 chars length.
No description provided.