Creating the secret

Create a Secret object in the openshift-config namespace to store the client secret for your identity provider. The identity provider custom resource (CR) references this secret during configuration.

Procedure
  1. Create a Secret object containing the client secret by running the following command:

    $ oc create secret generic <secret_name> --from-literal=clientSecret=<secret> -n openshift-config
  2. Optional: Apply the following YAML to create the secret:

    apiVersion: v1
    kind: Secret
    metadata:
      name: <secret_name>
      namespace: openshift-config
    type: Opaque
    data:
      clientSecret: <base64_encoded_client_secret>
  3. Create a Secret object from a file by running the following command:

    $ oc create secret generic <secret_name> --from-file=<path_to_file> -n openshift-config