Skip to content

website/api: update API clients doc - #21202

Merged
rissson merged 6 commits into
mainfrom
docs-api-clients
Mar 31, 2026
Merged

rissson merged 6 commits into
mainfrom
docs-api-clients

Conversation

@rissson

@rissson rissson commented Mar 27, 2026 •

Copy link
Copy Markdown
Member

Details

REPLACE ME


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema and clients have been updated (make gen)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

rissson added 2 commits March 26, 2026 14:02
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson self-assigned this Mar 27, 2026
@rissson
rissson requested review from a team as code owners March 27, 2026 13:29
@rissson rissson added the area:docs Features or issues related to Docusaurus label Mar 27, 2026
@rissson rissson changed the title wip website/api: update API clients doc Mar 27, 2026
@netlify

netlify Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 14f6b13
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69c6949f21765200080028ae
😎 Deploy Preview https://deploy-preview-21202--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 14f6b13
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69c6949fa99d84000868636b
😎 Deploy Preview https://deploy-preview-21202--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 14f6b13
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69c6949f29bc910008d79138
😎 Deploy Preview https://deploy-preview-21202--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Comment thread website/api/clients.mdx Resolved
@codecov

codecov Bot commented Mar 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.75%. Comparing base (0d5f838) to head (14f6b13).
⚠️ Report is 44 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21202      +/-   ##
==========================================
- Coverage   92.81%   92.75%   -0.06%     
==========================================
  Files        1000     1000              
  Lines       56635    56635              
  Branches      425      425              
==========================================
- Hits        52564    52532      -32     
- Misses       4071     4103      +32     
Flag Coverage Δ
conformance 37.36% <ø> (+<0.01%) ⬆️
e2e 42.87% <ø> (+<0.01%) ⬆️
integration 22.16% <ø> (-0.06%) ⬇️
rust 0.23% <ø> (ø)
unit 91.72% <ø> (ø)
unit-migrate 91.78% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx Resolved
Comment thread website/api/clients.mdx

## Usage in authentik

API clients used by authentik itself are vendored in the [authentik repository](https://github.com/goauthentik/authentik) under the `/packages/client-*` paths.

@tanberry tanberry Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do we mean here by "vendored"? Are they sold? Or generated, or accessed, or.. what would be another verb?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The api clients are generated automatically and checked in to version control (and are committed and pushed to github)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly, pretty common term that should be understood

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend using the term "generated" but up to you.

Comment thread website/api/clients.mdx Outdated

API clients used by authentik itself are vendored in the [authentik repository](https://github.com/goauthentik/authentik) under the `/packages/client-*` paths.

To generate those in that repository, run `make gen-clients`. To generate the client for a specific language, use the following commands:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To generate those ? Let's add the name after the word "those".... is it the clients?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to the clients

@tanberry tanberry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits, thanks for doing this @rissson .

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Mar 27, 2026
rissson added 2 commits March 27, 2026 15:03
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson
rissson requested review from dominic-r and tanberry March 27, 2026 14:03
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-14f6b13702fff2e9f28a0a554da5440d0877d5b7
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-14f6b13702fff2e9f28a0a554da5440d0877d5b7

Afterwards, run the upgrade commands from the latest release notes.

@rissson
rissson enabled auto-merge (squash) March 27, 2026 15:29
@rissson rissson moved this from In Progress to Needs review in authentik Core Mar 31, 2026
Comment thread website/api/clients.mdx
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";

## Installation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Installation
## Install the authentik client

Comment thread website/api/clients.mdx
</TabItem>
</Tabs>

## Inspecting the client source code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Inspecting the client source code
## Inspect the client source code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use gerund form (-ing) in our titles

Comment thread website/api/clients.mdx

The `main` branch only contains code for generating the API client. Navigate to a specific branch or tag to see the source code of the API client for the corresponding authentik version. For unreleased versions, see the next section.

## Generating a custom API client

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Generating a custom API client
## Generate a custom API client

@tanberry tanberry left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits on the titles about not using the gerund case, thanks @rissson !

@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Mar 31, 2026
@rissson
rissson merged commit be77dc9 into main Mar 31, 2026
105 checks passed
@rissson
rissson deleted the docs-api-clients branch March 31, 2026 12:52
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Mar 31, 2026
kensternberg-authentik added a commit that referenced this pull request Apr 8, 2026
* main:
  translate: Updates for project authentik and language fr_FR (#21285)
  packages/django-postgres-cache: rework to use ORM (#17771)
  providers/saml: Fix redirect for saml slo (#21258)
  core: fix provider not nullable (#21275)
  website/docs: ad source: add note about ldap signing (#21274)
  website/api: update API clients doc (#21202)
  ci: bump taiki-e/install-action from 2.70.2 to 2.70.3 in /.github/actions/setup (#21267)
  lifecycle/aws: bump aws-cdk from 2.1114.1 to 2.1115.0 in /lifecycle/aws (#21265)
  core, web: update translations (#21264)
  packages/ak-lib: init (#21257)
  website/docs: document group_uuid as a property for group object (#20865)
  web/flow: extract lifecycle events peripheral to stage management into their own controllers (#20898)
  core: bump pygments from 2.19.2 to 2.20.0 (#21260)
  website/docs: add grafana dashboard (#21254)
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Features or issues related to Docusaurus

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants