authentik/website/integrations/services/gravitee/index.md

3.0 KiB

title sidebar_label
Integrate with Gravitee Gravitee

Gravitee

Support level: Community

What is Gravitee

Gravitee.io API Management is a flexible, lightweight and blazing-fast Open Source solution that helps your organization control who, when and how users access your APIs.

It offers an easy to use GUI to setup proxies for APIs, rate limiting, api keys, caching, OAUTH rules, a portal that can be opened to the public for people to subscribe to APIs, and much more.

-- https://github.com/gravitee-io/gravitee-api-management

Preparation

The following placeholders will be used:

  • gravitee.company is the FQDN of the Gravitee install.
  • authentik.company is the FQDN of the authentik install.

authentik configuration

  1. Create an OAuth2/OpenID Provider under Applications > Providers using the following settings: :::note Only settings that have been modified from default have been listed. ::: - Name: Gravitee - Protocol Settings: - Client ID: Either create your own Client ID or use the auto-populated ID - Client Secret: Either create your own Client Secret or use the auto-populated secret :::note Take note of the Client ID and Client Secret as they are required when configuring Gravitee ::: - Redirect URIs/Origins: - https://gravitee.company/user/login - https://gravitee.company/console/ # Make sure to add the trailing / at the end, at the time of writing it does not work without it :::note Be sure to add the trailing / at the end of the https://gravitee.company/console/ URI, at the time of writing Gravitee does not work without this. :::

  2. Create an Application under Applications > Applications using the following settings:

    • Name: Gravitee
    • Slug: gravitee
    • Provider: Gravitee (the provider you created in step 1)
  3. Open the new provider you've just created.

  4. Make a note of the following URLs:

    • Authorize URL
    • Token URL
    • Userinfo URL
    • Logout URL

Gravitee configuration

In the Gravitee Management Console, navigate to Organizations (gravitee.company/console/#!/organization/settings/identities) , under Console > Authentication. Click Add an identity provider, select OpenID Connect, and fill in the following:

:::note Only settings that have been modified from default have been listed. :::

  • Allow portal authentication to use this identity provider: enable this
  • Client ID: Enter the Client ID from authentik that you noted in step 1
  • Client Secret: Enter the Client Secret from authentik that you noted in step 1
  • Token Endpoint: Populate this field with the Token URL
  • Authorize Endpoint: Populate this field with the Authorize URL
  • Userinfo Endpoint: Populate this field with the Userinfo URL
  • Userinfo Logout Endpoint: Populate this field with the Logout URL
  • Scopes: email openid profile