Add OAuth support based on configuration passed