Passport strategy for user authentication in hyperledger composer angular2 app -


i first-timer in implementing user authentication on web application. below details app:

  • its hyperledger composer angular2 application generated using yo hyperledger-composer command
  • existing set of username , password available

user identities issued in composer.

should use passport-saml strategy suggested in https://github.com/bergie/passport-saml? or there better option considering yo generates angular2 app (many angular 1.x examples available other strategies passport-local , passport-http)?

what details need existing database if passport-saml best option?

i checked using passport-http on hyperledger composer rest api, doesn't seem answer (here user wants use userid , usersecret).

see here -> https://hyperledger.github.io/composer//integrating/enabling-rest-authentication.html

you can use composer_providers environment variable - specify - passport strategies rest server should use authenticate clients of rest api. choose, strategy best suited - can't advise if passport-saml suitable you, that's decision :-) . parameters (example shown providers.json) quite similar example shown in docs. of information github repo posted has sample information in config parameters section.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -