-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE-777 Fix an issue of authentication (#140)
Even if enable authentication, user can login by using any invalid credential. Added some error handlings and e2e-test scenarios for user authentication. Signed-off-by: Atsushi Neki <atsushin@fast.au.fujitsu.com>
- Loading branch information
Showing
17 changed files
with
286 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
9 changes: 9 additions & 0 deletions
9
app/platform/fabric/e2e-test/configs/config_single-disable-auth.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"network-configs": { | ||
"org1-network": { | ||
"name": "org1-network", | ||
"profile": "./e2e-test/configs/connection-profile/org1-network-disable-auth.json" | ||
} | ||
}, | ||
"license": "Apache-2.0" | ||
} |
60 changes: 60 additions & 0 deletions
60
app/platform/fabric/e2e-test/configs/connection-profile/org1-network-disable-auth.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"name": "org1-network", | ||
"version": "1.0.0", | ||
"license": "Apache-2.0", | ||
"client": { | ||
"tlsEnable": true, | ||
"adminCredential": { | ||
"id": "exploreradmin3" | ||
}, | ||
"enableAuthentication": false, | ||
"organization": "org1", | ||
"connection": { | ||
"timeout": { | ||
"peer": { | ||
"endorser": "300" | ||
}, | ||
"orderer": "300" | ||
} | ||
} | ||
}, | ||
"channels": { | ||
"commonchannel": { | ||
"peers": { | ||
"peer0-org1": {} | ||
}, | ||
"connection": { | ||
"timeout": { | ||
"peer": { | ||
"endorser": "6000", | ||
"eventHub": "6000", | ||
"eventReg": "6000" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"organizations": { | ||
"org1": { | ||
"mspid": "Org1ExampleCom", | ||
"adminPrivateKey": { | ||
"path": "./app/platform/fabric/e2e-test/specs/crypto-config/peerOrganizations/org1/users/Admin@org1/msp/keystore/priv_sk" | ||
}, | ||
"peers": ["peer0-org1"], | ||
"signedCert": { | ||
"path": "./app/platform/fabric/e2e-test/specs/crypto-config/peerOrganizations/org1/users/Admin@org1/msp/signcerts/Admin@org1-cert.pem" | ||
} | ||
} | ||
}, | ||
"peers": { | ||
"peer0-org1": { | ||
"tlsCACerts": { | ||
"path": "./app/platform/fabric/e2e-test/specs/crypto-config/peerOrganizations/org1/peers/peer0-org1.org1/tls/ca.crt" | ||
}, | ||
"url": "grpcs://localhost:31000", | ||
"grpcOptions": { | ||
"ssl-target-name-override": "peer0-org1" | ||
} | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.