def is_authorized(request):
    """ Returns true if the given request has the configured auth code. """
    auth = request.match_info.get('auth')
    return auth is not None and auth == request.app.auth
