from typing import Any


def are_required_params_passed(event: Any, context: Any) -> bool:
    """
    confirm that the required params are passed.
    :param event: lambda event.
    :param context: context
    :return: bool
    """
    required_params_in_event = [
        "username",
        "password",
        "client_id",
        "redirect_uri",
        "scope",
    ]  # related values passed as a json object with these attrs
    for required_attr in required_params_in_event:
        if not event[required_attr] or len(event[required_attr]) == 0:
            return False
    return True