Using OAuth Authentication
OAuth requires the authenticating user to interact with using the browser.
Custom Credentials
Register an app to obtain Custom Credentials, such as the OAuthClientId and OAuthClientSecret.
Creating a Custom OAuth App
See Creating a Custom OAuth App for a procedure.