Creating a Custom OAuth Application
Creating a Custom OAuth Application
CData embeds OAuth Application Credentials with CData branding that can be used when connecting to SurveyMonkey via a desktop application or a headless machine.However, you must create a custom OAuth application to connect to SurveyMonkey via the Web. And since custom OAuth applications seamlessly support all three commonly-used auth flows, you might want to create custom OAuth applications (use your own OAuth Application Credentials) for those auth flows anyway.
Custom OAuth applications are useful if you want to:
- control branding of the authentication dialog;
- control the redirect URI that the application redirects the user to after the user authenticates; or
- customize the permissions that you are requesting from the user.
Procedure
The following procedure obtains the OAuth client credentials, the OAuthClientId, OAuthClientSecret and OAuthAccessToken, and registers the application in the SurveyMonkey developer console.- Open the SurveyMonkey developer console at https://developer.surveymonkey.com/.
- Click My Apps.
- Log in to your SurveyMonkey account.
- Click Create an App. Specify an application nickname, and specify whether the application should be private or public. (Public application use requires an Advantage-level plan; private application use requires a Premier-level plan.)
- Click Settings. The console displays the application settings for Client Id, Secret, and Access Token.
- If this is a desktop application, set the Callback URL to http://localhost:33333 or a different port number of your choice.
- If this is a Web application, set the Callback URL to a web page where the user should be redirected after they authorize your application.
- Select the scopes required by your application. The connector requires the following scopes:
- View Users
- View Surveys
- View Responses
- View Response Details
- View Contacts
- View Collectors