Middleware function to create the OpenIDStrategy when request is available.