Hyperledger Composer :error Authenticating to the REST server

前端 未结 2 929
终归单人心
终归单人心 2021-01-15 02:39

I have been following this Hyperledger Composer tutorial here and when I try to authenticate to the rest server via http://localhost:3000/auth/github I am not being redirec

相关标签:
2条回答
  • 2021-01-15 03:03

    in your COMPOSER_PROVIDERS stanza - specifically the callbackURL setting - you don't need the localhost:3000 - you just need the URL path as "/auth/github/callback" shown in the docs : https://hyperledger.github.io/composer/integrating/enabling-rest-authentication.html . The REST server will take care of..the rest.. . Then stop and restart the composer REST server composer-rest-server -p hlfv1 -n my-network -i admin -s adminpw -S true etc - from the command line where you export the configuration variable COMPOSER_PROVIDERS (above). cheers Paul

    0 讨论(0)
  • 2021-01-15 03:06

    Check if your github account is private. I created a new github account, and it works. Also use the latest command:

    composer-rest-server -p hlfv1 -n my-network -i admin -s adminpw -a true

    instead of the -S one

    Good luck!

    0 讨论(0)
提交回复
热议问题