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

Popular posts from this blog

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -