:orphan:

======================================================
Configuring Operations Center Admins using Google OIDC
======================================================

If you prefer to use OpenID Connect (OIDC) to authorize Admin users to manage cluster resources, you'll need to use the Data Science & AI Workbench Operation Center to configure an Auth Connector.

**Before you begin:** You'll need to `setup a project page and credentials <https://console.developers.google.com/apis/credentials>`_.

**To configure an OIDC Auth Connector:**

#. Log in to Workbench, select |menu| **Menu** in the top right corner and click the **Administrative Console** link displayed at the bottom of the slide out window.
          
#. Click **Manage Resources**.

#. Login to the Operations Center using the Administrator credentials :doc:`configured after installation <../../install/config>`.

#. Select **Settings** in the login menu in the upper-right corner.

   .. thumbnail:: ../../images/telekube-admin.png
      :align: center

#. In the left menu, select **Auth Connectors**, then click **+ Create** (if this is your first Auth Connector) or **+ New Connector** in the bottom-left, if other connectors have been configured.

   .. thumbnail:: ../../images/auth-connector.png
      :align: center

#. Provide the information required to connect to OIDC---including the client credentials---using the following format:

   .. code-block:: yaml

        kind: oidc
        metadata:
          name: google
        spec:
          claims_to_roles:
          - {claim: "hd", value: "domain.com", roles: ["@teleadmin"]}
          client_id: <client id>
          client_secret: <client secret>
          issuer_url: https://accounts.google.com
          redirect_url: "https://ops.domain/portalapi/v1/oidc/callback"
          scope: [email]
        version: v2

   **NOTE:** Using the above settings, all accounts belonging to ``domain.com`` will be a member of ``@teleadmin`` (making them superadmins). 

   EXAMPLE:

   .. thumbnail:: ../../images/oidc-auth-connector.png
      :align: center

#. Click **Save** to update Workbench to use this new connector. If the account already exists, you'll get an error. 

.. |menu| image:: ../../images/icons/menu.png
          :width: 25 px