---
title: How to Create an OIDC Provider
url: https://docs.vultr.com/platform/iam/oidc/oidc-providers/how-to-create-an-oidc-provider
description: Create a new OIDC provider in Vultr IAM to enable federated authentication. Configure the provider with client credentials and callback URL for integration.
publish_date: 2026-03-24T19:52:55.003187Z
last_updated: 2026-06-01T20:55:39.545201Z
---

An OIDC provider enables Vultr to act as an OpenID Connect identity provider, issuing tokens that external systems can use to authenticate against Vultr. Creating a provider automatically generates a Vultr-managed OIDC issuer with its own RSA key pair.

Follow this guide to create an OIDC provider using the Vultr API or Terraform.

=== "Vultr API"

    Send a `POST` request to the [**Create OIDC Provider** endpoint](https://www.vultr.com/api/#tag/oidc/operation/create-oidc-provider) to create a new provider. Replace `PROVIDER-NAME` with a descriptive name.

    ```console
    $ curl "https://api.vultr.com/v2/oidc/provider" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        -d '{
            "provider": {
                "name": "PROVIDER-NAME"
            }
        }'
    ```

    Note the `id` for managing the provider and the `issuer_id` for the auto-created Vultr-managed issuer linked to this provider.

=== "Terraform"

    1. Ensure the [Vultr Terraform provider](https://registry.terraform.io/providers/vultr/vultr/latest/docs) is configured in your Terraform project.

    1. Define the OIDC provider resource. Replace `PROVIDER-NAME` with a descriptive name.

        ```hcl
        resource "vultr_oidc_provider" "my_provider" {
          name = "PROVIDER-NAME"
        }
        ```

    1. Apply the configuration.

        ```console
        $ terraform apply
        ```

        Verify that the output shows `vultr_oidc_provider.my_provider: Creation complete`. Note the provider `id` and `issuer_id` from the Terraform state.