Blame docs/operations/ci/adding_oidc_authentication.md

47c289
# Adding OIDC Authentication
47c289
In CentOS, we have an instance of Ipsilon[1] which we currently use to authenticate many of our services. 
47c289
47c289
47c289
### Steps
47c289
This SOP covers configuring ocp.ci/ocp.stg.ci with an OpenID identity provider which is used to communicate with our ACO Ipsilon instance and provide authentication to the cluster.
47c289
47c289
- Authenticate with the ocp.ci/ocp.stg.ci cluster via the cli
47c289
- Create an Openshift Secret containing the ACO/Ipsilon clientSecret
47c289
- Create an Openshift Oauth object with the identityProvider configuration
47c289
47c289
47c289
See below for sample template which achieves this.
47c289
47c289
47c289
```
47c289
apiVersion: template.openshift.io/v1
47c289
kind: Template
47c289
metadata:
47c289
  name: openshift-oidc-config
47c289
objects:
47c289
- kind: Secret
47c289
  apiVersion: v1
47c289
  metadata:
47c289
    name: openid-client-secret-ocp-ci
47c289
    namespace: openshift-config
47c289
  data:
47c289
    clientSecret: <base64 encoded OIDC client secret>
47c289
  type: Opaque
47c289
- apiVersion: config.openshift.io/v1
47c289
  kind: OAuth
47c289
  metadata:
47c289
    name: cluster
47c289
  spec:
47c289
    identityProviders:
47c289
      - mappingMethod: claim
47c289
        name: accounts-centos-org
47c289
        openID:
47c289
          claims:
47c289
              email:
47c289
              - email
47c289
              - custom_email_claim
47c289
            name:
47c289
              - name
47c289
              - nickname
47c289
              - given_name
47c289
            preferredUsername:
47c289
              - email
47c289
          clientID: ocp.ci.centos
47c289
          clientSecret:
47c289
            name: openid-client-secret-ocp-ci
47c289
          extraScopes:
47c289
            - email
47c289
            - profile
47c289
          issuer: 'https://id.centos.org/idp/openidc'
47c289
        type: OpenID
47c289
```
47c289
47c289
47c289
47c289
### Resources:
47c289
- [1] [Ipsilon](https://ipsilon-project.org/)
47c289