def is_whitelisted(self, request: AxesHttpRequest, credentials: dict = None) -> bool:  
if is_client_ip_address_whitelisted(request):<EOL><INDENT>return True<EOL><DEDENT>if is_client_method_whitelisted(request):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Checks if the request or given credentials are whitelisted for access.