Hyperledger Composer :error Authenticating to the REST server

前端 未结 2 969
终归单人心
终归单人心 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

提交回复
热议问题