diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2020-09-15 20:05:11 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2020-09-18 08:11:27 +0200 |
commit | 47c34bd6ad49cae408b8d7c150c6f9f324aaddf5 (patch) | |
tree | 690ceecfa6b4d0b7bf5b97ebde188ebf79b4a009 /mimetypes.h | |
parent | 11723570af9cb7bd87842e79c85ee99530be9902 (diff) |
ubus: add ACL support for "subscribe" request
With this change ubus will allow users with access to the object pseudo
method ":subscribe" to subscribe for notifications.
1. Move uh_ubus_allowed() up in the code
2. Export "Authorization" parsing code to the uh_ubus_get_auth()
3. Check for ":subscribe" method access
Right now this depends on "Authorization" HTTP header which browsers
don't allow setting for the EventSource. An alternative method of
submitting session token remains to be implemented.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'mimetypes.h')
0 files changed, 0 insertions, 0 deletions