-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 2.6 regression on group field and deprecate Jackson parser (fix #236
- Loading branch information
1 parent
503b9a7
commit 85274cd
Showing
5 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
|
||
<scm> | ||
<connection>scm:git:ssh://github.com/${gitHubRepo}.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/${gitHubRepo}.git</developerConnection> | ||
<developerConnection>scm:git:[email protected]/${gitHubRepo}.git</developerConnection> | ||
<url>https://github.com/${gitHubRepo}</url> | ||
<tag>oic-auth-3.0</tag> | ||
</scm> | ||
|
@@ -58,7 +58,7 @@ | |
</dependency> | ||
<dependency> | ||
<groupId>com.google.http-client</groupId> | ||
<artifactId>google-http-client-jackson2</artifactId> | ||
<artifactId>google-http-client-gson</artifactId> | ||
<version>1.44.1</version> | ||
</dependency> | ||
<dependency> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,7 @@ | |
import com.github.tomakehurst.wiremock.core.WireMockConfiguration; | ||
import com.github.tomakehurst.wiremock.junit.WireMockRule; | ||
import com.google.api.client.auth.openidconnect.IdToken; | ||
import com.google.api.client.json.JsonFactory; | ||
import com.google.api.client.json.jackson2.JacksonFactory; | ||
import com.google.api.client.json.gson.GsonFactory; | ||
import com.google.api.client.json.webtoken.JsonWebSignature; | ||
import com.google.api.client.json.webtoken.JsonWebToken; | ||
import com.google.api.client.util.ArrayMap; | ||
|
@@ -59,8 +58,6 @@ | |
*/ | ||
@Url("https://jenkins.io/blog/2018/01/13/jep-200/") | ||
public class PluginTest { | ||
private static final JsonFactory JSON_FACTORY = new JacksonFactory(); | ||
|
||
private static final String TEST_USER_USERNAME = "testUser"; | ||
private static final String TEST_USER_EMAIL_ADDRESS = "[email protected]"; | ||
private static final String TEST_USER_FULL_NAME = "Oic Test User"; | ||
|
@@ -1164,7 +1161,7 @@ private String createIdToken(PrivateKey privateKey, Map<String, Object> keyValue | |
payload.set(keyValue.getKey(), keyValue.getValue()); | ||
} | ||
|
||
return JsonWebSignature.signUsingRsaSha256(privateKey, JSON_FACTORY, header, payload); | ||
return JsonWebSignature.signUsingRsaSha256(privateKey, GsonFactory.getDefaultInstance(), header, payload); | ||
} | ||
|
||
private String createUserInfoJWT(PrivateKey privateKey, String userInfo) throws Exception { | ||
|
@@ -1177,7 +1174,7 @@ private String createUserInfoJWT(PrivateKey privateKey, String userInfo) throws | |
payload.set(keyValue.getKey(), keyValue.getValue().getAsString()); | ||
} | ||
|
||
return JsonWebSignature.signUsingRsaSha256(privateKey, JSON_FACTORY, header, payload); | ||
return JsonWebSignature.signUsingRsaSha256(privateKey, GsonFactory.getDefaultInstance(), header, payload); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters