0

Being a newbie in nodejs. I am building a hyperledger composer multi user application. Following this tutorial.

I have also changed the COMPOSER_PROVIDERS variable, but still nothing works. I have no clue how to implement the passport-local strategy in my angular app.

James Z
  • 12,209
  • 10
  • 24
  • 44
Rahul Singh
  • 107
  • 1
  • 8
  • 1
    Please provide more details about what you tried, add code examples, etc, [How to ask](https://stackoverflow.com/help/how-to-ask) – Runtime Terror Apr 10 '18 at 10:15
  • https://stackoverflow.com/questions/46216970/how-to-use-passport-local-to-authenticate-in-composer-rest-server I've tried this. But no outcome – Rahul Singh Apr 10 '18 at 13:27

1 Answers1

0

The Tutorial you point to uses 2 REST servers one of which is using passport-github for multi-user authentication.

There is a worked example in the Composer documentation for the passport-github authentication, and a tutorial for passport-google-oauth2.

I would suggest working through one of those for some understanding before moving on to a passport-local scenario.

There is some additional information in another Stack Overflow Q/A that may help you further.

R Thatcher
  • 5,550
  • 1
  • 7
  • 15