SoftInstigate / restheart

Rapid API Development with MongoDB
https://restheart.org
GNU Affero General Public License v3.0
805 stars 171 forks source link

All requests to getRoles plugin are Forbidden #371

Closed shireefadel closed 4 years ago

shireefadel commented 4 years ago

Any request to the plugin getRoles is returning 403 Forbidden However the user name in the Authentication header is matching the user in the url

Expected Behavior

An authenticated request to /_logic/roles/{uid} to return 200 OK An unauthenticated request to /_logic/roles/{uid} to return 401 Unauthorized

Current Behavior

All requests to /_logic/roles/{uid} are returning 403 Forbidden

Environment

MongoDB 4, Ubuntu server 16 with RH 4

getroles
ujibang commented 4 years ago

In RESTHeart v4 the URI of getRoles plugin is /roles/{uid}

check all differences in configuration between v3 and v4 in upgrate to v4 doc page

shireefadel commented 4 years ago

Yes, it works fine now , Thanks