followed access documentation
both not working using
authorization header
query parameter
using latest version of loopback 2.1.x.
i turned off email verification , got accesstoken object initial login. header , query request not working now.
access_token=6nb2ti5qexiodbs5fqgwiz4porfibcmmyjbyxsghwuulouy0gteugx2vcevvbpbk
authorization header
curl -x -h "authorization: $access_token" \ http://localhost:3000/api/widgets
query parameter
curl -x http://localhost:3000/api/widgets?access_token=$access_token
in header pass key authorization not access_token
in query params pass key accesstoken not access_token
Comments
Post a Comment