IBM-Blockchain-Archive / ibm-container-service

IBM Blockchain Platform for Developers on IBM Container Service
Apache License 2.0
89 stars 73 forks source link

trying to enable authentication for the REST server #92

Closed erickzzh closed 6 years ago

erickzzh commented 6 years ago

How and where do i config the REST API server? I have tried running the following command but it does seem to work. My goal is to have the Wallet option appear in my API page.

export COMPOSER_PROVIDERS='{ "github": { "provider": "github", "module": "passport-github", "clientID": "REPLACE_WITH_CLIENT_ID", "clientSecret": "REPLACE_WITH_CLIENT_SECRET", "authPath": "/auth/github", "callbackURL": "/auth/github/callback", "successRedirect": "/", "failureRedirect": "/" } }'

vmorris commented 6 years ago

Probably you meant to open this against https://github.com/hyperledger/composer

erickzzh commented 6 years ago

i have been following this document https://ibm-blockchain.github.io/setup/ and have everything working. I just like to know how to config the REST api server so that i can enable Oauth.

vmorris commented 6 years ago

try this https://hyperledger.github.io/composer/unstable/integrating/enabling-multiuser.html

erickzzh commented 6 years ago

so right now i created the api server using cd cs-offerings/scripts/ ./create/create_composer-rest-server.sh --business-network-card INSERT_BIZCARD_NAME so composer-rest-server is not an command that i can execute at this point.

Are you suggesting that i should create a new RESET server

bryq3 commented 6 years ago

@ezmoneySniper did you manage to enable multiuser mode for rest server on cluster? If yes how did you do this? Could you please give me some hints?