You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -42,36 +42,36 @@ public void addOAuthParameter(String key, String value)
42
42
43
43
privateStringcheckKey(Stringkey)
44
44
{
45
-
if (key.startsWith(OAUTH_PREFIX) || key.equals(OAuthConstants.SCOPE))
45
+
if (key.startsWith(OAUTH_PREFIX) || key.equals(OAuthConstants.SCOPE) || key.equals(OAuthConstants.REALM))
46
46
{
47
47
returnkey;
48
-
}
48
+
}
49
49
else
50
50
{
51
-
thrownewIllegalArgumentException(String.format("OAuth parameters must either be '%s'or start with '%s'", OAuthConstants.SCOPE, OAUTH_PREFIX));
51
+
thrownewIllegalArgumentException(String.format("OAuth parameters must either be '%s', '%s' or start with '%s'", OAuthConstants.SCOPE, OAuthConstants.REALM, OAUTH_PREFIX));
52
52
}
53
53
}
54
54
55
55
/**
56
56
* Returns the {@link Map} containing the key-value pair of parameters.
0 commit comments