Added config parameters to support oauth.

User can switch between user logins and app logins.