{"id":26411001,"url":"https://github.com/edgeflare/fabric-oidc-proxy","last_synced_at":"2025-09-03T23:41:39.898Z","repository":{"id":253386494,"uuid":"843350893","full_name":"edgeflare/fabric-oidc-proxy","owner":"edgeflare","description":"OIDC/OAuth2 Proxy for Hyperledger Fabric Blockchain","archived":false,"fork":false,"pushed_at":"2025-05-16T14:54:58.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T05:47:36.172Z","etag":null,"topics":["fabric-ca","hyperledger-fabric","oauth2-proxy","oidc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgeflare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-16T10:21:51.000Z","updated_at":"2025-05-16T14:55:02.000Z","dependencies_parsed_at":"2025-05-16T15:37:59.599Z","dependency_job_id":"712f7b62-eb8f-4c02-9461-35f332e6796c","html_url":"https://github.com/edgeflare/fabric-oidc-proxy","commit_stats":null,"previous_names":["edgeflare/fabric-oidc-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edgeflare/fabric-oidc-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeflare%2Ffabric-oidc-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeflare%2Ffabric-oidc-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeflare%2Ffabric-oidc-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeflare%2Ffabric-oidc-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeflare","download_url":"https://codeload.github.com/edgeflare/fabric-oidc-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeflare%2Ffabric-oidc-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273529190,"owners_count":25121823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fabric-ca","hyperledger-fabric","oauth2-proxy","oidc"],"created_at":"2025-03-17T20:20:09.498Z","updated_at":"2025-09-03T23:41:39.853Z","avatar_url":"https://github.com/edgeflare.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OIDC/OAuth2 Proxy for Hyperledger Fabric Blockchain\n\nfabric-oidc-proxy allows authenticating to [Hyperledger Fabric blockchain](https://github.com/hyperledger/fabric) using OIDC token. It gets, on behalf of OIDC tokenholder (humans, programs, etc), a membership (x509) certificate issued by Fabric CA, and signs transactions using their respective certificate.\n\n![fabric-oidc-proxy](./docs/flow.svg)\n\n## Prerequisites\n- Hyperledger Fabric network. For quickstart, checkout our [helm-charts](https://github.com/edgeflare/helm-charts))\n- OIDC/OAuth2 provider that allows to add custom claims (We're using [ZITADEL](https://github.com/zitadel/zitadel))\n\n### Quickstart\n```shell\ngo build -o fabric-oidc-proxy .\n./fabric-oidc-proxy start --port=8080\n```\n\nRegister and Enroll a user with the OIDC proxy\n```shell\nexport FABRIC_PROXY_API=http://localhost:8080/api/v1\n```\n\n```shell\ncurl -X POST -H \"authorization: Bearer $TOKEN\" $FABRIC_PROXY_API/account/enroll\n```\n\n## Interacting with the Hyperledger Fabric network\n[example using asset-transfer chaincode-as-a-service](./example-ccaas/)\n\n```shell\nexport TX_URL=$FABRIC_PROXY_API/default/assetcc/submit-transaction\n```\n\n- InitLedger\n```shell\ncurl -H \"authorization: Bearer $TOKEN\" -X POST -d '{\"name\": \"InitLedger\",\"args\": []}' $TX_URL\n```\n\n- GetAllAssets\n```shell\ncurl -H \"authorization: Bearer $TOKEN\" -X POST -d '{\"name\": \"GetAllAssets\",\"args\": []}' $TX_URL\n```\n\n- CreateAsset\n```shell\ncurl -H \"authorization: Bearer $TOKEN\" -X POST -d '{\"name\": \"CreateAsset\",\"args\": [\"demo-id-01\", \"blue\", \"10\", \"Sam\", \"100\"]}' $TX_URL\n```\n\n- UpdateAsset\n```shell\ncurl -H \"authorization: Bearer $TOKEN\" -X POST -d '{\"name\": \"UpdateAsset\",\"args\": [\"demo-id-01\", \"blue\", \"10\", \"Sam\", \"1000\"]}' $TX_URL\n```\n\n- DeleteAsset\n```shell\ncurl -H \"authorization: Bearer $TOKEN\" -X POST -d '{\"name\": \"DeleteAsset\",\"args\": [\"demo-id-01\"]}' $TX_URL\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeflare%2Ffabric-oidc-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeflare%2Ffabric-oidc-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeflare%2Ffabric-oidc-proxy/lists"}