# Dev-only Google Workspace connector with the service-account key inline.
apiVersion: almaforge.com/v1
kind: OIDCConnector
metadata:
  name: google
spec:
  display: Google
  issuerURL: https://accounts.google.com
  clientID: <oauth-client-id>
  clientSecret: <oauth-client-secret>
  # Use a Workspace admin who can read group memberships. The service account
  # acts as this user during sign-in.
  googleAdminEmail: admin@example.com
  googleServiceAccount: |
    {
      "type": "service_account",
      "project_id": "example-alma-sso",
      "private_key_id": "f06e...",
      "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
      "client_email": "almaforge-group-sync@example-alma-sso.iam.gserviceaccount.com",
      "client_id": "11...76",
      "auth_uri": "https://accounts.google.com/o/oauth2/auth",
      "token_uri": "https://oauth2.googleapis.com/token",
      "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
      "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/almaforge-group-sync%40example-alma-sso.iam.gserviceaccount.com"
    }
  # Use the group's primary email under value and list existing AlmaForge roles.
  # Members of the group receive those roles at sign-in.
  claimsToRoles:
    - claim: groups
      value: admins@example.com
      roles: [admin, access]
