1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/gitops-configuring-argo-cd-using-dex-github-conector.adoc
2025-08-12 09:20:08 +00:00

34 lines
1.3 KiB
Plaintext

:_mod-docs-content-type: PROCEDURE
[id="gitops-configuring-argo-cd-using-dex-github-connector_{context}"]
= Configuring Argo CD SSO using Dex GitHub connector
[discrete]
.Procedure
. Register the application in the identity provider as explained link:https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/#1-register-the-application-in-the-identity-provider[here]
. Update the Argo CD CR.
. In the `dex.config` key, add the GitHub connector to the connectors sub field. See the link:https://github.com/dexidp/website/blob/main/content/docs/connectors/github.md[Dex GitHub connector documentation]. After adding the `clientID` and the `clientSecret` will be populated.
. Optional: In the `connectors.config.orgs` list, add one or more GitHub organizations. Any member of the org will then be able to login to Argo CD to perform management tasks.
+
[source,yaml]
----
apiVersion: argoproj.io/v1alpha1
kind: ArgoCD
metadata:
name: example-argocd
labels:
example: openshift-oauth
spec:
dex:
config: |
connectors:
# GitHub example
- type: github
id: github
name: GitHub
config:
clientID: xxxxxxxxxxxxxx
clientSecret: $dex.github.clientSecret # Alternatively $<some_K8S_secret>:dex.github.clientSecret
orgs:
- name: dummy-org
----