# Identity Provider Client ID (per route)

## Summary

When set, **Identity Provider Client ID (per route)** overrides the value of [idp\_client\_id](https://www.pomerium.com/docs/reference/identity-provider-settings.md#identity-provider-client-id) set globally for this route.

## How to configure

**Core:**

| **YAML**/**JSON** setting | **Type** | **Usage**    |
| :------------------------ | :------- | :----------- |
| `idp_client_id`           | `string` | **optional** |

### Examples

```yaml
routes:
  - from: https://verify.localhost.pomerium.io
    to: http://verify:8000
    idp_client_id: idp_client_id
```

**Enterprise:**

**Kubernetes:**

The `idp_client_id` can be set via a reference to a secret with a `client_id` key:

| **[Annotation name](https://www.pomerium.com/docs/deploy/k8s/ingress.md#set-ingress-annotations)** | **Type** | **Usage** |
| :-- | :-- | :-- |
| `identity_provider_secret` | name of a Kubernetes secret | **optional** |

```yaml
ingress.pomerium.io/identity_provider_secret: idp-secret
```

```yaml
apiVersion: v1
kind: Secret
metadata:
  name: idp-secret
data:
  client_id: ...
```
