Search code examples
jquerynode.jsloopbackjsloopbackgoogle-api-nodejs-client

authentication and authorization with Loopback


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.


Solution

  • 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