OAuth stack middleware.