Penv Cloud
Start free
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.

Identity proof

The token has to come from https://acme.us.auth0.com/, and its sub claim has to match the workload you named. We compare 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.

Console fields

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.

Trust

Built from the example answers above:

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

We name the identity for you, so the form never asks for one.

Console snippet

# 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=$(T="$T" jq -n '{token:env.T}' | curl -sS "https://penv.cloud/api/v1/auth/oidc" \
  -H 'content-type: application/json' --data-binary @- | jq -r .credential)
PENV_TOKEN="$C" penv pull

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