How to use different network cards for multiple composer rest server users?

0 votes

I have started composer rest server in multi user mode and opened two sessions in different web browsers to pose as different users and authenticated using github. My problem is that when I import a network card in one browser, same is reflected in the other browser as well. So if one user is using its network card to perform transaction the other user will also be using the same network card as its been set as default for composer rest server. How do I deal with this?

Dec 5, 2018 in Blockchain by Christine
• 15,790 points
359 views

1 answer to this question.

0 votes

You are getting the same network card in both browsers because you have authenticated same user via GitHub in both browsers. 

The github authentication scheme is a 'delegated' authentication scheme and is using a client application (id and secret) authentication mechanism to enable a client to use the REST APIs and get a token, without needing to authenticate as a user every time.

Once a client has authenticated to the REST API, that client can add Blockchain identities to a wallet. The wallet is private to that client, and is not accessible to other clients. When a REST client makes a request to the REST server, a Blockchain identity in each clients wallet is used to digitally sign all transactions made by that client (because the identity is set as default, at the time).

answered Dec 5, 2018 by Perry
• 17,020 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

How i can use nodejs to watch transactions in bitcoin network?

you can use  const Socket = require('blockchain.info/Socket'); const mySocket ...READ MORE

answered Jul 9, 2018 in Blockchain by digger
• 26,550 points
46 views
0 votes
1 answer
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
283 views
+1 vote
1 answer
0 votes
1 answer

How to extend Composer rest Server ?

 It looks like you want to query ...READ MORE

answered Sep 20, 2018 in Blockchain by Perry
• 17,020 points
88 views