0

we are developing a small application with loopback and NodeJs. it means we Created the Rest API in loopback . now we need to add authentication and authorization functionality .

we are using Postman for Testing the Rest APIs. please tell us how can we implement this task in our APP.

Rakesh
  • 53
  • 1
  • 1
  • 8

1 Answers1

0

You can implement JWT or OAuth 2

enter image description here

There are some npm packages available, Implement the suitable package for your application.

  1. loopback-auth0-jwt
  2. loopback-jwt
  3. loopback-component-oauth2
karthick
  • 5,998
  • 12
  • 52
  • 90
  • is there diff between oAuth2 and JWT !! – Rakesh Apr 18 '17 at 07:59
  • please suggest us , how can we implement this in our APP. – Rakesh Apr 18 '17 at 08:09
  • Please look out the difference and choose the best one for your application - http://www.seedbox.com/en/blog/2015/06/05/oauth-2-vs-json-web-tokens-comment-securiser-un-api/ – karthick Apr 18 '17 at 08:18
  • thanks , if you suggest us some steps to do than it will better for us . – Rakesh Apr 18 '17 at 10:16
  • Hi @karthick , I want to develop a Client Server with loopback (as per your given Suggestion) , But I need your help for start development . give me a short idea for development . – Rakesh Apr 27 '17 at 07:29