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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -