def get_current_user():
    token = os.getenv('HTTP_AUTHORIZATION')
    if token:
        try:
            token = token.split(' ')[1]
        except __HOLE__:
            pass

    user, _ = User.get_by_bearer_token(token)
    return user
dataset/ETHPy150Open loudnate/appengine-endpoints-auth-example/auth/endpoints.py/get_current_user