As a
Developer or Admin managing blockchain-based applications,
I want to
securely authenticate users using Keycloak and automatically register and enroll them with Hyperledger Fabric CA through the Backend Bridge,
So that
they can receive a valid Fabric identity and interact with the blockchain network without manual provisioning.
Acceptance Criteria
✅ JWT Token Validation
- Given a user logs in through Keycloak and receives a JWT token,
- When the frontend sends the token to the Backend Bridge,
- Then the Bridge must validate the token against Keycloak's JWKS endpoint.
✅ Check Fabric Wallet
- When a valid user token is received,
- Then the Bridge should check if the corresponding Fabric identity exists in the Fabric Wallet.
✅ Register and Enroll with Fabric CA
- If the identity does not exist,
- Then the Bridge should register the user with Fabric CA and enroll them to receive a signed certificate.
✅ Store Identity Securely
- The enrolled identity should be securely stored in the Fabric Wallet for future blockchain interactions.
✅ Return Success Response
- The Backend Bridge should return a success status and identity reference if the flow completes correctly.
As a
Developer or Admin managing blockchain-based applications,
I want to
securely authenticate users using Keycloak and automatically register and enroll them with Hyperledger Fabric CA through the Backend Bridge,
So that
they can receive a valid Fabric identity and interact with the blockchain network without manual provisioning.
Acceptance Criteria
✅ JWT Token Validation
✅ Check Fabric Wallet
✅ Register and Enroll with Fabric CA
✅ Store Identity Securely
✅ Return Success Response