Skip to content

Commit

Permalink
[ES-1347] (mosip#812)
Browse files Browse the repository at this point in the history
Signed-off-by: Venkata Saidurga Polamraju <saidurgacsea@gmail.com>
  • Loading branch information
pvsaidurga authored Jul 18, 2024
1 parent 355428a commit 412995f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public String blockIndividualId(String individualIdHash) {
@CachePut(value = Constants.PRE_AUTH_SESSION_CACHE, key = "#transactionId")
public OIDCTransaction updateIndividualIdHashInPreAuthCache(String transactionId, String individualId) {
OIDCTransaction oidcTransaction = cacheManager.getCache(Constants.PRE_AUTH_SESSION_CACHE).get(transactionId, OIDCTransaction.class);//NOSONAR getCache() will not be returning null here.
oidcTransaction.setIndividualIdHash(IdentityProviderUtil.generateB64EncodedHash(ALGO_SHA3_256, individualId));
if (oidcTransaction != null) {
oidcTransaction.setIndividualIdHash(IdentityProviderUtil.generateB64EncodedHash(ALGO_SHA3_256, individualId));
}
return oidcTransaction;
}

Expand Down

0 comments on commit 412995f

Please sign in to comment.