mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:14:38 +07:00
refactor(dex): remove Gitea connector
Use Kanidm instead.
This commit is contained in:
parent
09ce3e64fc
commit
4673f91558
@ -11,14 +11,6 @@ spec:
|
||||
name: dex-secrets
|
||||
data:
|
||||
# Connectors
|
||||
- secretKey: GITEA_CLIENT_ID
|
||||
remoteRef:
|
||||
key: gitea.dex
|
||||
property: client_id
|
||||
- secretKey: GITEA_CLIENT_SECRET
|
||||
remoteRef:
|
||||
key: gitea.dex
|
||||
property: client_secret
|
||||
- secretKey: KANIDM_CLIENT_ID
|
||||
remoteRef:
|
||||
key: kanidm.dex
|
||||
|
@ -8,14 +8,6 @@ dex:
|
||||
oauth2:
|
||||
skipApprovalScreen: true
|
||||
connectors:
|
||||
- type: gitea
|
||||
id: gitea
|
||||
name: Gitea
|
||||
config:
|
||||
clientID: $GITEA_CLIENT_ID
|
||||
clientSecret: $GITEA_CLIENT_SECRET
|
||||
redirectURI: https://dex.khuedoan.com/callback
|
||||
baseURL: https://git.khuedoan.com
|
||||
- type: oidc
|
||||
id: kanidm
|
||||
name: Kanidm
|
||||
|
@ -181,7 +181,6 @@ def main() -> None:
|
||||
]
|
||||
|
||||
gitea_oauth_apps = [
|
||||
{'name': 'dex', 'redirect_uri': f"https://{client.NetworkingV1Api().read_namespaced_ingress('dex', 'dex').spec.rules[0].host}/callback"}
|
||||
]
|
||||
|
||||
kanidm_groups = [
|
||||
|
Loading…
Reference in New Issue
Block a user