Files
Homelabv4/infrastructure/authentik/gitlab-blueprint.yaml
T
2026-03-09 20:21:35 -05:00

54 lines
2.1 KiB
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: authentik-blueprints-gitlab
namespace: authentik
labels:
goauthentik.io/blueprint: "true"
data:
gitlab.yaml: |-
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
version: 1
metadata:
name: gitlab-oidc
entries:
# OAuth2/OIDC Provider for GitLab
- model: authentik_providers_oauth2.oauth2provider
id: gitlab-provider
state: present
identifiers:
name: GitLab
attrs:
name: GitLab
client_id: 70b9da5c8166cea0ba504a869824020bce6636
client_secret: 2e9c0c5b7a8969eb782d08bf1bf3d50ad96f8a73d9c18d1e4141816aebe14a622e8064bf5a5bce835d80e89cdc5f4cc6cf4a8c8234556647dc8884888866bd7d
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
authentication_flow: !Find [authentik_flows.flow, [slug, default-authentication-flow]]
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
redirect_uris:
- url: "https://gitlab.kube.huskypup.net/users/auth/openid_connect/callback"
matching_mode: strict
enabled: true
property_mappings:
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
client_type: confidential
access_code_validity: "minutes=10"
access_token_validity: "days=7"
refresh_token_validity: "days=30"
signing_key: !Find [authentik_crypto.certificatekeypair, [name, default]]
# Application for GitLab
- model: authentik_core.application
id: gitlab-application
state: present
identifiers:
slug: gitlab
attrs:
name: GitLab
slug: gitlab
policy_engine_mode: any
provider: !KeyOf gitlab-provider