refactoring: use view injection in OAuth process