Skip to main content

felix-gitlab-oidc-application

CLI to simply create GitLab OIDC applications. This makes it trivial to add Gitlab as an IdP to any OpenID Connect enabled application, for example Grafana.

Usage

felix-gitlab-oidc-application \
  -g git.example.com \
  --redirect-url https://grafana.example.com/login/gitlab

creates an application on git.example.com (infers grafana.example.com as application name) and outputs both GITLAB_OIDC_CLIENT_ID and GITLAB_OIDC_CLIENT_SECRET

If you do use mise, you can output to .config/mise.prod.toml instead:

felix-gitlab-oidc-application \
  --mise-file=.config/mise.prod.toml \
    https://grafana.example.com/login/gitlab

Development

git clone https://codeberg.org/felixhummel/gitlab-oidc-application.git
cd gitlab-oidc-application
mise trust
mise i
uv sync
ln -s $(which felix-gitlab-oidc-application) ~/.local/bin/felix-gitlab-oidc-application

Explanation

This tool replaces the following manual flow:

Create application

gitlab \
  -g git.example.com \
  -ojson \
  application create \
  --name grafana.example.com \
  --redirect-uri https://grafana.example.com/login/gitlab \
  --scopes 'openid profile email' \
  --confidential true

-->

{"id": 14, "application_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "application_name": "grafana.example.com", "callback_url": "https://grafana.example.com/login/gitlab", "confidential": true, "secret": "gloas-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}

Somehow echo

GITLAB_OIDC_CLIENT_ID=...
GITLAB_OIDC_CLIENT_SECRET=...

Metadata

Release files for felix-gitlab-oidc-application 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for felix-gitlab-oidc-application 0.2.2
File Size Uploaded Provenance Actions
felix_gitlab_oidc_application-0.2.2.tar.gz 2.4 kB Without provenance Details for felix_gitlab_oidc_application-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for felix-gitlab-oidc-application 0.2.2
File Interpreter ABI Platform Actions
felix_gitlab_oidc_application-0.2.2-py3-none-any.whl Python 3 none any Details for felix_gitlab_oidc_application-0.2.2-py3-none-any.whl

Total release size: 6.0 kB

Release files / felix_gitlab_oidc_application-0.2.2.tar.gz

Download URL felix_gitlab_oidc_application-0.2.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f69dca088d08c117db92f62815a4d959ae14d247acc120bff83c60108b8fa28a
BLAKE2b-256 checksum
How to use checksums
607ba5a222de5e1d7cec4cd38c9260098501172dcbd4bbd93b409941bb9ac249
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / felix_gitlab_oidc_application-0.2.2-py3-none-any.whl

Download URL felix_gitlab_oidc_application-0.2.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b1dd5bf1b63cf5ef2e2d13f04530cfe0b2714c74a52ca9bf93e0a905c44f37f
BLAKE2b-256 checksum
How to use checksums
ea7c3503b11cf4f35ee4607069c85c0f911fa5d3b9f316d6dd782dae75fe10b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for felix-gitlab-oidc-application 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page