feat: Add Auth0 authentication support as alternative to Keycloak#19
Open
jasonchen-eng wants to merge 1 commit intoDLC-link:mainfrom
Open
feat: Add Auth0 authentication support as alternative to Keycloak#19jasonchen-eng wants to merge 1 commit intoDLC-link:mainfrom
jasonchen-eng wants to merge 1 commit intoDLC-link:mainfrom
Conversation
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds Auth0 client credentials authentication as an alternative to Keycloak for Canton network access.
Changes:
The Auth0 module provides:
All existing Keycloak-based examples remain unchanged. Auth0 examples are provided as separate files with _auth0.rs suffix for easy comparison.