use of org.keycloak.testsuite.runonserver.RunOnServer in project keycloak by keycloak.
the class BrokerRunOnServerUtil method removeBrokerExpiredSessions.
static RunOnServer removeBrokerExpiredSessions() {
return (RunOnServer) session -> {
RealmModel realm = session.getContext().getRealm();
session.sessions().removeExpired(realm);
session.authenticationSessions().removeExpired(realm);
};
}
Aggregations