incus-mirror/test/mini-oidc
Stéphane Graber b7a3c767f8
global: Use strings.Cut instead of strings.Split/SplitN
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2026-05-27 03:37:55 -04:00
..
minioidc Rewrite Go import path to v7 2026-05-02 01:18:25 +02:00
storage global: Use strings.Cut instead of strings.Split/SplitN 2026-05-27 03:37:55 -04:00
main.go Rewrite Go import path to v7 2026-05-02 01:18:25 +02:00
README.md test/mini-oidc: Allow setting expiration for tokens 2025-10-16 13:17:16 +02:00

mini-oidc

mini-oidc is an extremely basic OIDC provider which can be used with the incus command line. It doesn't use web authentication and instead just automatically approves any authentication request.

Usage:

mini-oidc <port> [<user-file>]

By default, it will authenticate everyone as unknown, but this can be overridden by writing the username to be returned in the file named in the 2nd (optional) argument. This effectively allows scripting a variety of users without having to deal with actual login.

The storage sub-package is a based on https://github.com/zitadel/oidc/tree/main/example/server/storage. The following changes were made:

  • Added IncusDeviceClient
  • Added option to configure access token and refresh token expiry