Unable to Get isValid Method invoked inCustomUserStorageProvider

Team, We are trying to implement CustomUserStorageProvieder to hit an API call to validate Credentials as API and create custom mapper token.

  • We have extended the UserStorageProvider, UserLookupProvider, CredentialInputValidator

The Provider is getting dispalyed in Admin console of Keycloak, but isValid method is not getting called during authentication

Do you save users to keycloak db? If you do, keycloak don’t check isValid method until you add UserModel.setFederationLink().

Thanks SDN, We are not adding user to keycloak DB
we Use Keycloak to validate user via External API by implementing
RemoteUserStorageProviderFactory