Hi, i am created user spi provider for my monolithic project, and user spi is working fine, as client i am using postman for generating access token, but when you create multiply request is creating multiply access tokens, and multiply session i did not like it, my question is how can i create only one session?
Source code is here: GitHub - SmtxSoftDev/keycloak-core-user-spi
Or how can i do thomething like this?
@Override
public boolean isValid(RealmModel realmModel, UserModel userModel, CredentialInput credentialInput) {
// This is only example
if(keycloakSession.isHasSessions){
keycloakSession.removeAllSession();
}
// This is only example
if(userData.isValid){
createNewSession();
}
return true;
}