Skip to main content

felix-gitlab-oidc-application

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

Installation

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 replaces the following manual flow:

Create application

gitlab -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=...

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

felix_gitlab_oidc_application-0.2.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

felix_gitlab_oidc_application-0.2.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file felix_gitlab_oidc_application-0.2.1.tar.gz.

File metadata

File hashes

Hashes for felix_gitlab_oidc_application-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d40bfa1bd679962510e7b706a48cc1b57744fe076c191cf1afb208f2bb45777a
MD5 108a97ce3ec405179946f4915d02140f
BLAKE2b-256 2f0ecf042703bfeb46e5fdfe22ee54d3b7febbad9394b46859e32fb548dad9c3

See more details on using hashes here.

File details

Details for the file felix_gitlab_oidc_application-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for felix_gitlab_oidc_application-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fd9a797b103ea824796319b4d86c6a21c585ff779e02cbd4d94cf47b210dbba
MD5 5540ab7763c76ec287c12346c4bfe10f
BLAKE2b-256 a1dd56b34aeeccb27902864c862cee24bde76603d5d5a45dd9c11d7ca9c2ac34

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.2

2 files

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.0

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

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