hyperledger / fabric-chaincode-go

Hyperledger Fabric Packages for Go Chaincode
https://pkg.go.dev/github.com/hyperledger/fabric-chaincode-go
Apache License 2.0
137 stars 133 forks source link

HasOUValue function for cid library #17

Closed brjd closed 4 years ago

brjd commented 4 years ago

Added HasOUValue func to ClientIdentity that checks if an OU with a specified value is present in the client's X509 cert.

This way granular access control in the chaincode can also be done based on OU values instead of only on attributes from the custom extra extension in the cert that is not supported by external CA services. Link to JIRA item FABCG-12: https://jira.hyperledger.org/browse/FABCG-12