Skip to content

Implement Fabric CA enrollment logic in the backend through Fabric-auth-brigde - (The Backend Bridge) #2

@imos64

Description

@imos64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions