---
apiVersion: v1
kind: ConfigMap
metadata:
  name: dex
  namespace: auth
data:
  config.yaml: |
    issuer: https://{{ YOUR DOMAIN }}/dex/
    storage:
      type: kubernetes
      config:
        inCluster: true
    web:
      http: 0.0.0.0:5556
    logger:
      level: "info"
      format: text
    connectors:
      - type: github
        id: github
        name: GitHub
        config:
          clientID: $(github_client_id)
          clientSecret: $(github_client_secret)
          redirectURI: https://{{ YOUR DOMAIN }}/dex/callback
          orgs:
          - name: Falkonry
          # hostName: $(github_hostname)
          loadAllGroups: true
          useLoginAsID: false   
    staticClients:
    - id: kubeflow-oidc-authservice
      redirectURIs: ["/login/oidc"]
      name: 'Dex Login Application'
      secret: pUBnBOY80SnXgjibTYM9ZWNzY2xreNGQok