Interact with Pocket ID OIDC provider. Pocket ID is a simple and easy-to-use OIDC provider that allows users to authenticate with their passkeys to your services.
terraform {
required_providers {
pocketid = {
source = "pocket-id/pocketid"
version = "~> 2.6"
}
}
}
# Configure the Pocket ID Provider
provider "pocketid" {
# The base URL of your Pocket ID instance
base_url = "https://pocket-id.example.com"
# API token for authentication
# This can also be set via the POCKETID_API_TOKEN environment variable
api_token = var.pocketid_api_token
# Optional: Skip TLS certificate verification (only for development)
# skip_tls_verify = true
# Optional: HTTP client timeout in seconds (default: 30)
# timeout = 60
}
# Variable for API token to avoid hardcoding sensitive values
variable "pocketid_api_token" {
description = "API token for Pocket ID authentication"
type = string
sensitive = true
}
api_token (String, Sensitive) API token for authentication. Can also be set via POCKETID_API_TOKEN environment variable.base_url (String) Base URL of the Pocket ID instance. Can also be set via POCKETID_BASE_URL environment variable.skip_tls_verify (Boolean) Skip TLS certificate verification. Default is false. Only use this for development/testing.timeout (Number) HTTP client timeout in seconds. Default is 30.