Skip to content

Commit

Permalink
ES-1053 (mosip#795)
Browse files Browse the repository at this point in the history
Signed-off-by: ase-101 <sunkadaeanusha@gmail.com>
  • Loading branch information
ase-101 authored Jun 26, 2024
1 parent 762550b commit 6a35d97
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
public class AuthorizationServiceImpl implements AuthorizationService {

private static final String VERIFIED_CLAIMS = "verified_claims";
private static final String COOKIE_VALUE = "{\"code\":\"%s\"}";

@Autowired
private ClientManagementService clientManagementService;
Expand Down Expand Up @@ -306,8 +305,7 @@ public SignupRedirectResponse prepareSignupRedirect(SignupRedirectRequest signup
//Move the transaction to update-consented transaction
cacheUtilService.setUpdateConsentedTransaction(updateTransactionId, signupRedirectRequest.getTransactionId(), oidcTransaction);

String cookieValue = String.format(COOKIE_VALUE, oidcTransaction.getServerNonce());
Cookie cookie = new Cookie(updateTransactionId, IdentityProviderUtil.b64Encode(cookieValue));
Cookie cookie = new Cookie(updateTransactionId, oidcTransaction.getServerNonce());
cookie.setMaxAge(signupIDTokenValidity);
cookie.setSecure(true);
cookie.setHttpOnly(true);
Expand Down

0 comments on commit 6a35d97

Please sign in to comment.