Beispiel #1
0
def _authenticate():
    username = control.setting('globoplay_username')
    password = control.setting('globoplay_password')

    if not username or not password or username == '' or password == '':
        return {}, {}

    auth = Authenticator()

    credentials, user_data = auth.authenticate(username, password)

    return credentials, user_data, auth
def get_authenticator():
    if control.setting('use_globoplay_credentials_for_globosat') != 'true':
        return Authenticator('globosat')

    return Authenticator()
def is_logged_in():
    username = control.setting('globoplay_username')
    password = control.setting('globoplay_password')

    return Authenticator().is_authenticated(username, password,
                                            CADUN_SERVICES.LOGGED_ONLY)
def get_service_data(service_id=None):
    allowed, userdata = Authenticator().check_service(service_id)

    return allowed, userdata
Beispiel #5
0
def is_logged_in():
    username = control.setting('globoplay_username')
    password = control.setting('globoplay_password')

    return Authenticator().is_authenticated(username, password)