Adding OAuth and extra middlewares