Creating a OAUTH2 Component

To use OAUTH2 authentication in your Component, follow these steps:

On the Authentication tab, while building your Component, select the type OAUTH2.

1342

In the Resources tab, click to Add Params for test, fill the fields and click Request Token. After authentication in the platform, the access token will be automatically configured and the Component will be ready to consume the Resources.

2704

Follow below the fields required to authorize:

FieldDescription
Callback URLThe URL the user will be redirected after confirming the login. It's necessary to register this URL at the destiny Component creation.
Auth URLThe endpoint for authorization server, which retrieves the authorization code.
Access token URLThe endpoint for the resource server, which exchanges the authorization code for an access token.
Client IDThe client identifier given to the client during the destination Component registration process.
Client SecretThe client secret given to the client during the Component registration process.
ScopeThe scope of the access request, which might have multiple comma-separated values.
StateAn opaque value that prevents cross-site request forgery.
Client AuthenticationA drop down menu where you can either send a Basic Auth request in the header, or send client credentials in the request body.
Add authorization data toDefine where the generated access token will be sent when a Resource is required.

Refresh Token

If your automation utilizes a OAUTH2 authentication, you'll need to refresh the user's access token to keep that automation running. However, you don't need to worry about it, LinkApi does that to you.

Obs: the credential used on the Component Builder screen to tests is not renewed. To refresh it, just click the Request Token button on the authentication params popup.