Authorize a component
Authorize a component configuration with OAuth, with your own account or through a link you send to the account owner, and reset an authorization.
This page shows how to authorize a component configuration against an external service: with your own account, through a link you send to the account owner, and how to reset an authorization. The authorization is only valid for the configuration in which it was created and its copies. To create the configuration first, see Create and manage configurations; to edit its JSON, see Debug mode.
Many services support authorization using the OAuth protocol (opens in a new tab). For you (as the end user), this means that the service does not require entering credentials (username, password, token, etc.). Instead, you are redirected to the service itself, where you authorize the Keboola component. Then, you are redirected back to Keboola, where you can set other parameters and run the configuration. OAuth authorization is a very secure authorization method in which you don’t have to hand over the credentials to your account. The consumer—the Keboola component—obtains only the minimal required access.
The OAuth authorization process begins with the Authorize button (in this example, the Google Calendar data source connector is shown):

In the next step, you can choose the authorization method:
- Instant: Use this method if you have direct access to the account; the authorization will be done immediately.
- External: If you need to authorize access to the service from someone who does not have an account in Keboola, you can generate an external link, which will guide them through this process.
Authorize with your own account
Section titled “Authorize with your own account”Goal: authorize a configuration with an account you can log in to yourself (instant authorization).
Instant authorization requires you to log in to the service you want to use.
-
In the configuration, click Authorize Account. The Authorize dialog opens on the Instant authorization tab.
-
With instant authorization, you have to enter a name describing the account you’re going to use:

-
Next, you are taken to the actual authorization screen. This is provided by the service itself and varies widely. In the example below, the authorization for Google Calendar is shown.

Result: the service sends you back to Keboola with the configuration authorized.
Ask the account owner to authorize
Section titled “Ask the account owner to authorize”Goal: get a configuration authorized by someone who has no account in Keboola (external authorization).
An external account can be used in cases where you do not have direct access to the service and the service account owner can’t share the credentials with you. For example, they may belong to a different company or department, or sharing the credentials would leak some permissions. In such cases, you can ask the account owner to authorize the component configuration for you.
-
In the configuration, click Authorize Account, and in the Authorize dialog open the External authorization tab.
-
Click Generate Link to generate the authorization link:

-
Then, you can copy the link and send it to the account owner. The link is valid for 48 hours. If it expires, you must regenerate and resend it.

-
When the account owner clicks the link, they’re taken to a special page. There, they can confirm what they are authorizing and who requested the action. Then, they can click Authorize Account to proceed:

-
In the next step, the account owner has to enter the account name:

-
Then they are taken to the actual authorization screen. This is provided by the service itself and varies widely. In the example below, the authorization for Google Calendar is shown.

Result: the configuration is authorized with the owner’s account, and the owner never had to share the credentials. In the configuration, the Authorization panel shows the badge Authorized; expand it to see the authorized account and the date.
Reset an authorization
Section titled “Reset an authorization”Goal: drop the current authorization so that you can authorize the configuration again.
-
You can reset an existing authorization by clicking the Reset button.

-
Authorize the configuration again, with either method above.
Result: this invalidates the authorization obtained from the service and allows you to reauthorize the configuration. Note that if you reset the authorization of a configuration that was copied, all the copies will lose the authorization.
The authorization can also be revoked from within the service. In that case the configuration will stop working, and you will have to reset and reauthorize it.
Next: Debug mode →
Was this page helpful?
Thank you for helping improve Keboola's documentation!