- BETH
- Get started
- Authentication
Authentication
Authentication surfaces
Section titled “Authentication surfaces”BETH integrations can authenticate to more than one service:
- Canton Ledger API: submit commands and query contract state for an authorized party.
- Canton Admin API: perform privileged participant operations such as package management. Most BETH clients should not need this surface.
- BitSafe APIs: obtain account rules and participate in approved mint or redemption workflows.
- Ethereum account: initiate deposits to the Ethereum bridge and receive redemptions on the Ethereum network.
- Source and artifact systems: access approved repositories or private release artifacts where required.
Use separate identities
Section titled “Use separate identities”Use distinct clients and credentials for development, test, and production. Separate administrative credentials from application credentials. Grant only the party rights and API scopes required for the workflow.
Configuration categories
Section titled “Configuration categories”A client can require an identity-provider URL, realm or audience, client identifier, client secret or approved key, grant type, token endpoint, Canton user, and target party. Exact variable names belong in the versioned configuration reference.
Safe setup
Section titled “Safe setup”- Create or obtain the approved service identity.
- Assign the minimum Canton
actAsandreadAsrights. - Configure the approved audience and scopes.
- Store secrets in a secret manager or protected local store.
- Request a token through the approved flow.
- Validate issuer, audience, expiry, and party authorization.
- Run a read-only balance query before submitting a command.
Operational rules
Section titled “Operational rules”- Never place tokens or secrets in documentation, screenshots, logs, shell history, or source control.
- Rotate credentials under an approved process.
- Treat authentication success and party authorization as separate checks.
- Do not retry a state-changing command only because token refresh or transport failed.
- Sanitize support evidence before sharing it.
Common failures
Section titled “Common failures”| Failure | Check |
|---|---|
| Token request rejected | Provider URL, client, secret, grant, realm, and network access |
| Token accepted but query denied | Audience, scopes, Canton user rights, and party |
| Works in one environment only | Environment-specific client, endpoints, trust store, and party mapping |
| Intermittent failures | Clock skew, token expiry, refresh behavior, and connection reuse |
Related pages
Section titled “Related pages”- BETH environments and prerequisites
- BETH developer Quick Start
- Install and validate BETH DARs
- BETH SDK, API, and integration reference
- BETH security
Next step
Section titled “Next step”Test the connection: BETH developer Quick Start.
Ask the docs
Answers come only from this documentation and can be wrong. Check the linked pages.
Ask a question about BitSafe, CBTC or the developer guides. For example: