Skip to content
This repository was archived by the owner on Aug 7, 2019. It is now read-only.

Cant enable github authentication on ibmblockchain/composer-rest-server #127

@simonmullaney

Description

@simonmullaney

I have my blockchain network setup up on the IBM blockchain starter plan using the starter kit (https://github.com/sstone1/blockchain-starter-kit)

I'm trying to setup up GitHub passport authentication on my ibmblockchain/composer-rest-server but I cant install the passport-github package on my composer-rest server.

If I ssh into my server I don't have the permission to use npm as I'm the composer user and I don't know where to find the password to change to the root user.

I tried to install the npm package by adding 'npm install -g passport-github' in the deploy_composer_rest_server in the pipeline-DEPLOY.sh file in https://github.com/sstone1/blockchain-starter-kit/blob/master/.bluemix/pipeline-DEPLOY.sh but it still didn't work.

I also tried running a task ( bx cf run-task composer-rest-server-block-aviation-network "cd /home/composer/.npm-global/lib/node_modules/@ibmblockchain/composer-rest-server/node_modules && npm install --production -g passport-github") on the server but it didnt work for some reason even though the output was as expected when I looked for the package i couldnt find it.

If I look at the logs of my ibmblockchain/composer-rest-server I keep getting the error:

Cannot find module 'passport-github'

Do you now a way to get around this or know how to install the 'passport-github' package on the ibmblockchain/composer-rest-server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions