Skip to content

Commit a2887dd

Browse files
committed
Makes `addOAuthParams` and `appendSignature` `protected`, so that they can be used from overridden `prepareRequestTokenRequest` methods in subclasses. This makes it possible to deal with the (rare) case where the request-token endpoint in an OAuth 1.0a service accepts additional-parameters; these are supported by request-token endpoints as per the specification.
1 parent bd9a430 commit a2887dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scribejava-core/src/main/java/com/github/scribejava/core/oauth/OAuth10aService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected OAuthRequest prepareRequestTokenRequest() {
7575
return request;
7676
}
7777

78-
private void addOAuthParams(OAuthRequest request, String tokenSecret) {
78+
protected void addOAuthParams(OAuthRequest request, String tokenSecret) {
7979
final OAuthConfig config = getConfig();
8080
request.addOAuthParameter(OAuthConstants.TIMESTAMP, api.getTimestampService().getTimestampInSeconds());
8181
request.addOAuthParameter(OAuthConstants.NONCE, api.getTimestampService().getNonce());
@@ -177,7 +177,7 @@ private String getSignature(OAuthRequest request, String tokenSecret) {
177177
return signature;
178178
}
179179

180-
private void appendSignature(OAuthRequest request) {
180+
protected void appendSignature(OAuthRequest request) {
181181
final OAuthConfig config = getConfig();
182182
switch (config.getSignatureType()) {
183183
case Header:

0 commit comments

Comments
 (0)