OAuth 2.0 in REST integration
OAuth 2.0 is an authorization framework that allows your application to securely access services via HTTPS. Leading providers of services for social networking, messaging, file storage, media, health informatics, and the Internet of Things (IoT) publish their data through RESTful APIs that often are protected by the OAuth 2.0 protocol. You can use OAuth 2.0 to configure the authentication for data sources that the system creates from your REST integration. In the New REST Integration wizard, you can specify or create an OAuth 2.0 authentication profile by using the client credentials or authorization code grant type. You can use an existing OAuth 2.0 provider for the authentication profile or create a new one.
The following figure shows an example of the OAuth 2.0 authentication profile in the New REST Integration wizard with the client credentials grant type. This example demonstrates how you can obtain a list of tweets that match a certain query from Twitter.
OAuth 2.0 with the client credentials grant type in the REST wizard
The following figure shows an example of the OAuth 2.0 authentication profile in the New REST Integration wizard with the authorization code grant type. This example demonstrates how you can connect to Box to obtain the information about a folder in your Box account.
OAuth 2.0 with the authorization code grant type in the REST wizard
When you select the authorization code grant type for OAuth 2.0 in the wizard, you can generate an access token by clicking Connection page or in the Add a REST response dialog box of the Data model page. This action authenticates and authorizes your connection with the OAuth 2.0 service provider and allows you to access protected content, as shown in the following figure.on the
Authentication and authorization for OAuth 2.0
To later revoke the access token, click.