mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
added keycloak content fixing build error added the file under gitops folder added keycloak in TOC review changes done added keycloak files review changes done removed dex is used to delegate made review changes made review changes made review changes made review changes made review changes made review changes made review changes made review changes remoed extra space from commands added italics made review changes made review changes optional step formatted review changes done made review changes created callouts made review changes review changes done review changes done
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
[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
|
|
---- |