Route Permissions  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Route Permissions

Postby SBarnes » Thu Feb 11, 2021 9:25 am

If you want to disable all routes except the specific routes do you need to set the default rout permission to undefined or denied?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Route Permissions

Postby Mike.Sheen » Thu Feb 11, 2021 12:32 pm

SBarnes wrote:If you want to disable all routes except the specific routes do you need to set the default rout permission to undefined or denied?


Setting the default permission to denied will do it.

Setting to undefined will only do it if no other permission has set it to allow - that's any permission against any route in any group they are a member of, or the default permission of any other group they are a member of.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Route Permissions

Postby SBarnes » Thu Feb 11, 2021 12:47 pm

Thanks,

Actually I discovered if you set the default to denied and then set specific ones to allow, the specifics get denied as well, you have to set the default to undefined and the specifics to allow to get them and only them to work is that correct?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Route Permissions  Topic is solved

Postby Mike.Sheen » Thu Feb 11, 2021 12:52 pm

SBarnes wrote:Thanks,

Actually I discovered if you set the default to denied and then set specific ones to allow, the specifics get denied as well, you have to set the default to undefined and the specifics to allow to get them and only them to work is that correct?


Yes - deny means deny, regardless of any other permission set.

Undefined means not allowed unless something else explicitly allows it.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to REST API

Who is online

Users browsing this forum: No registered users and 2 guests

cron