javascript - Adding remote method to build-in User model not working in Loopback -
i new loopback. trying add new remote method build-in user model following link.but getting below error while trying access api.
{"error":{"statuscode":401,"name":"error","message":"authorization required"}}
but per above link, api can access users of application since configuring acl users in such way. doing wrong?
any appreciated. in advance
you did not add acl entry new remote method in the user's model configuration.
you need add entry execute
access type, similar to
{ "principaltype": "role", "principalid": "$everyone", "permission": "allow", "property": "mynewremotemethod", "accesstype": "execute" }
Comments
Post a Comment