Skip to content
Components

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):

Screenshot - Authorization

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.

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.

  1. In the configuration, click Authorize Account. The Authorize dialog opens on the Instant authorization tab.

  2. With instant authorization, you have to enter a name describing the account you’re going to use:

    Screenshot - Instant Authorization

  3. 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.

    Screenshot - Service Authorization

Result: the service sends you back to Keboola with the configuration authorized.

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.

  1. In the configuration, click Authorize Account, and in the Authorize dialog open the External authorization tab.

  2. Click Generate Link to generate the authorization link:

    Screenshot - Generate link

  3. 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.

    Screenshot - Copy link

  4. 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:

    Screenshot - External Authorization page

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

    Screenshot - External Authorization

  6. 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.

    Screenshot - Service Authorization

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.

Goal: drop the current authorization so that you can authorize the configuration again.

  1. You can reset an existing authorization by clicking the Reset button.

    Screenshot - Reset Authorization

  2. 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 →

Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.