Skip to content
Permalink
Browse files
Merge pull request #17 from fynmanoj/keycloak-develop
keycloak-change-acount-json-type-to-json
  • Loading branch information
avikganguly01 committed Aug 18, 2021
2 parents 9c4c2c0 + 3709d0e commit 1c9dd8c56bde1d5b8432c4ae6c248c764c2c2ca5
Showing 1 changed file with 3 additions and 1 deletion.
@@ -38,6 +38,7 @@
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -93,7 +94,8 @@ AnubisAuthentication authenticate(


if(jwt.getBody().get("fin") != null){
final String serializedAccountAccess = jwt.getBody().get("fin", String.class);
Map map= jwt.getBody().get("fin", Map.class);
final String serializedAccountAccess = gson.toJson(map);
final AccountAccessTokenContent accountAccess = gson.fromJson(serializedAccountAccess, AccountAccessTokenContent.class);
final Set<ApplicationPermission> acctPermissions = translateAccountPermissions(accountAccess.getAccounts());
permissions.addAll(acctPermissions);

0 comments on commit 1c9dd8c

Please sign in to comment.