settings.yaml:
settings.yaml
ns oidc-token --inspect --audience 'api://AzureADTokenExchange' in the Niteshift terminal tab to see the trust
values without printing the token.
On the app registration identified by clientId, add a federated credential with the exact
inspected iss, aud, and environment-specific sub. Microsoft Entra checks all three values
with case-sensitive matching. Replace the placeholders below with the inspected values:
subject is the entire inspected org:<org_id>:environment:<environment_id> value.
Use a distinct credential name for each environment you authorize. Separately grant the app’s
service principal only the permissions it needs on the intended Azure resources. See Microsoft
Entra’s federated credential guide
for the Azure-side setup.