I’m encountering a 404 error when attempting to use the RemoveUserTotpAsync function in my application, which is integrated with Keycloak version 13.
This is my code to configure totp which works perfectly fine:
var _client = new KeycloakClient(new Flurl.Url(_Keycloak_Auth_Url), _Keycloak_Auth_Client_SK, _Keycloak_Auth_ClientId);
var existingUsers = await _client.GetUsersAsync(_Keycloak_Realm, email: usersEmailId);
await _client.SendUserUpdateAccountEmailAsync(_Keycloak_Realm, existingUsers.Single().Id, new String{
RequiredAction.CONFIGURE_TOTP.ToString()
});
Whenever I try to execute the code below, I encounter a 404 error:
await _client.RemoveUserTotpAsync(_Keycloak_Realm, existingUsers.Single().Id);
Is there another way to disable totp for a user?