Add credential secret

Also switched to OAuth namespace from deprecated Oauth.