Ensure timestamp on clientSession is updated in AccountService when linking identity broker
This commit is contained in:
parent
988832e388
commit
d523d7f202
1 changed files with 2 additions and 3 deletions
|
@ -679,11 +679,10 @@ public class AccountService {
|
|||
|
||||
try {
|
||||
ClientSessionModel clientSession = auth.getClientSession();
|
||||
clientSession.setAction(ClientSessionModel.Action.AUTHENTICATE);
|
||||
ClientSessionCode clientSessionCode = new ClientSessionCode(realm, clientSession);
|
||||
clientSessionCode.setAction(ClientSessionModel.Action.AUTHENTICATE);
|
||||
clientSession.setRedirectUri(redirectUri);
|
||||
clientSession.setNote(OpenIDConnect.STATE_PARAM, UUID.randomUUID().toString());
|
||||
clientSession.setNote(ClientSessionCode.ACTION_KEY, KeycloakModelUtils.generateCodeSecret());
|
||||
ClientSessionCode clientSessionCode = new ClientSessionCode(realm, clientSession);
|
||||
|
||||
URI url = UriBuilder.fromUri(this.uriInfo.getBaseUri())
|
||||
.path(AuthenticationBrokerResource.class)
|
||||
|
|
Loading…
Reference in a new issue