Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def reset_factor(self, user_id, user_factor_id):
"""Reset an enrolled factor
:param user_id: target user id
:type user_id: str
:param user_factor_id: target factor id
:type user_factor_id: str
:rtype: None
"""
ApiClient.delete_path(self, '/{0}/factors/{1}'.format(user_id, user_factor_id))
def delete_app_instance(self, id):
"""Delete app by target id
:param id: the target app id
:type id: str
:return: None
"""
ApiClient.delete_path(self, '/{0}'.format(id))
def delete_group(self, gid):
"""Delete group by target id
:param gid: the target group id
:type gid: str
:return: None
"""
response = ApiClient.delete_path(self, '/{0}'.format(gid))
return Utils.deserialize(response.text, UserGroup)
def delete_user(self, uid):
"""Delete user by target id
:param uid: the target user id
:type uid: str
:return: None
"""
response = ApiClient.delete_path(self, '/{0}'.format(uid))
return Utils.deserialize(response.text, User)
def clear_session(self, id):
"""Terminate a session
:param id: the target session id
:rtype: Session
"""
ApiClient.delete_path(self, '/{0}'.format(id))