Skip to content

Commit 8e4c302

Browse files
committed
oauth2: mark the test id_token email as verified so the valid-token test passes
1 parent a8db372 commit 8e4c302

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎plugins/user-authenticators/oauth2/src/test/java/org/apache/cloudstack/oauth2/oidc/GenericOIDCOAuth2ProviderTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ private String idToken(String issuer, String audience, String email, long expire
103103
String payload = "{"
104104
+ "\"iss\":\"" + issuer + "\","
105105
+ "\"aud\":[\"" + audience + "\"],"
106+
+ "\"email_verified\":true,"
106107
+ (email == null ? "" : "\"email\":\"" + email + "\",")
107108
+ "\"exp\":" + (System.currentTimeMillis() / 1000L + expiresInSeconds) + ","
108109
+ "\"sub\":\"12345\""

0 commit comments

Comments
 (0)