Skip to content

feat: Add Auth0 authentication support as alternative to Keycloak#19

Open
jasonchen-eng wants to merge 1 commit intoDLC-link:mainfrom
jasonchen-eng:auth0-integration-pr
Open

feat: Add Auth0 authentication support as alternative to Keycloak#19
jasonchen-eng wants to merge 1 commit intoDLC-link:mainfrom
jasonchen-eng:auth0-integration-pr

Conversation

@jasonchen-eng
Copy link

This adds Auth0 client credentials authentication as an alternative to Keycloak for Canton network access.

Changes:

  • Add auth0 module (crates/cbtc/src/auth0.rs) with client credentials flow
  • Add 9 Auth0-based example programs (*_auth0.rs) demonstrating usage
  • Update Cargo.toml to include reqwest dependency for Auth0 HTTP calls
  • Add Auth0 configuration variables to .env.example

The Auth0 module provides:

  • Client credentials OAuth 2.0 flow
  • JWT token parsing for user ID and custom claims
  • Full documentation and usage examples

All existing Keycloak-based examples remain unchanged. Auth0 examples are provided as separate files with _auth0.rs suffix for easy comparison.

This adds Auth0 client credentials authentication as an alternative to Keycloak for Canton network access.

Changes:
- Add auth0 module (crates/cbtc/src/auth0.rs) with client credentials flow
- Add 9 Auth0-based example programs (*_auth0.rs) demonstrating usage
- Update Cargo.toml to include reqwest dependency for Auth0 HTTP calls
- Add Auth0 configuration variables to .env.example

The Auth0 module provides:
- Client credentials OAuth 2.0 flow
- JWT token parsing for user ID and custom claims
- Full documentation and usage examples

All existing Keycloak-based examples remain unchanged. Auth0 examples
are provided as separate files with _auth0.rs suffix for easy comparison.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant