Config_data in a Python Middleware

Yes, it is the correct way to get at this data, I think to get it you can just access the spec object:

@Hook
def MyAuthMiddleware(request, session, metadata, spec):
    configData = spec.config_data

    // Continue code here...
    return request, session, metadata