Univention Bugzilla – Bug 55651
Central Navigation API response on unknown user
Last modified: 2023-02-02 10:58:55 CET
When calling the central navigation endpoint in the portal (/univention/portal/navigation.json) with an unknown user, today the response is: --- { "categories": [] } --- While it would make much more sense to either render the contents for anonymous users or respond with an appropritate HTTP response code (e.g. 401 or 403). Functional wise I would prefer the "anonymous user" option.
if the shared secret is wrong, 401 is probably more accurate. if the user doesn't exist: i am ok with treating it as anonymous user.
> if the shared secret is wrong, 401 is probably more accurate. > if the user doesn't exist: i am ok with treating it as anonymous user. In deed that would be the best way to solve it!