Skip to content

Commit ed7460b

Browse files
authored
Merge pull request #29 from benoh-sap/main
Fix iss jwt validation
2 parents 6fb72a6 + 7efecc7 commit ed7460b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

auth/src/main/java/com/gigya/auth/GSAuthRequestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
public class GSAuthRequestUtils {
2424

25-
public static final String VERSION = "java_auth_1.0.0";
25+
public static final String VERSION = "java_auth_1.0.1";
2626

2727
public static GSLogger logger = new GSLogger();
2828

@@ -300,7 +300,7 @@ static String verifyJwt(String jwt, String apiKey, PublicKey key) {
300300

301301
// #2 - Verify JWT provided api key with input api key.
302302
final String issuer = claimsJws.getBody().getIssuer();
303-
final String validIssuer = "https://fidm.gigya.com/jwt/" + apiKey;
303+
final String validIssuer = "https://fidm.gigya.com/jwt/" + apiKey + "/";
304304
if (issuer != null && !issuer.equals(validIssuer)) {
305305
logger.write("JWT verification failed - apiKey does not match");
306306
return null;

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
buildscript {
22
ext {
33
sdk_library_version = '3.3.1'
4-
auth_library_version = '1.0.0'
4+
auth_library_version = '1.0.1'
55
}
66

77
repositories {

0 commit comments

Comments
 (0)