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 LinkedIn via a desktop application or a headless machine.However, you must create a custom OAuth application to connect to LinkedIn 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
To create a custom OAuth application that obtains the OAuth connection properties:- Log in to the LinkedIn Developer Platform.
- Click Create app.
- Enter information to be displayed to users when they are prompted to grant permissions to your application.
- Select the application that was created and request access for Advertising API from the list of Products. The LinkedIn Marketing Developer Platform Access Form displays.
- Fill in the required details and submit the form.
- After LinkedIn makes the new custom application available, navigate to the Auth section.
- Configure the following OAuth 2.0 scopes: r_basicprofile, r_emailaddress, r_organization_social, and r_organization_admin.
- Configure the authorized Redirect URLs.
For desktop applications, set the Redirect URL to http://localhost:33333 or a port number of your choice. When you connect, you must set the CallbackURL connection property to this exact URL.
For headless machines, set the Redirect URL to http://localhost:33333 or a port number of your choice.