@Override
    public Service restore(final RequestContext requestContext, final WebContext webContext,
                           final Optional<TransientSessionTicket> givenTicket, final Client client) {
        return givenTicket
            .map(ticket -> {
                val account = ticket.getProperty(PasswordlessUserAccount.class.getName(), PasswordlessUserAccount.class);
                PasswordlessWebflowUtils.putPasswordlessAuthenticationAccount(requestContext, account);

                val passwordlessRequest = ticket.getProperty(PasswordlessAuthenticationRequest.class.getName(), PasswordlessAuthenticationRequest.class);
                PasswordlessWebflowUtils.putPasswordlessAuthenticationRequest(requestContext, passwordlessRequest);
                
                return ticket.getService();
            })
            .orElse(null);

    }
This is {@link PasswordlessDelegatedClientAuthenticationWebflowStateContributor}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-passwordless-webflow/src/main/java/org/apereo/cas/web/flow/delegation/PasswordlessDelegatedClientAuthenticationWebflowStateContributor.java