Docs
Reference

Auth0

Applications authenticate with the machine-to-machine client they run as.

Applications authenticate with the machine-to-machine client they run as.

What proves the identity

The token has to come from https://acme.us.auth0.com/, and its sub claim has to match the workload you named. penv compares that claim byte for byte, with no wildcards.

Every token also has to name your workspace as its audience. Ask for this audience and no other. A token requested for two audiences fails every exchange.

What the console asks for

FieldExampleAdvancedWhat it pins
Tenant domainacme.us.auth0.comno
Client IDaBcD1234eFgH5678iJkL9012mNoP3456noEvery machine using this client matches.

The console also asks which project and environment this identity reaches and which role it gets, with the credential lifetime behind Advanced.

What the trust holds

Built from the example answers above:

WhatValue
Issuerhttps://acme.us.auth0.com/
Claim comparedsub
SubjectaBcD1234eFgH5678iJkL9012mNoP3456@clients
Identity nameauth0-abcd1234efgh5678ijkl9012mnop3456

penv names the identity for you, so the form never asks for one.

The snippet the console prints

# In Auth0: create a custom API whose Identifier is YOUR_WORKSPACE_ID,
# with signing algorithm RS256. The choice is made at creation and is permanent.
# $AUTH0_CLIENT_SECRET is this client's own secret, already on the machine.
T=$(printf 'grant_type=client_credentials&client_id=%s&client_secret=%s&audience=%s' \
  "$AUTH0_CLIENT_ID" "$AUTH0_CLIENT_SECRET" "YOUR_WORKSPACE_ID" \
  | curl -sS https://<TENANT_DOMAIN>/oauth/token --data-binary @- | jq -r .access_token)
C=$(curl -sS "https://penv.cloud/api/v1/auth/oidc" \
  -H 'content-type: application/json' \
  -d "{\"token\":\"$T\"}" | jq -r .credential)
PENV_TOKEN="$C" penv pull

The snippet finishes with penv pull, which writes a file. penv run is the path the docs teach for a process, and penv pull is for a host that needs a file on disk. Connect your CI has the wrapped step.