Authentication for write actions #5
Notifications
Due Date
No due date set.
Blocks
#7 added password check for DELETE method
DMC/play-api
Reference: DMC/play-api#5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The only authentication that is currently in place is for viewing of videos. This is done in communication with the play platform.
A different authentication solution is required for API endpoints that make changes, such as queue item and presentation deletion.
A new configuration item called
auth
should be added to the[api]
section ofconfig.ini
. It should contain some fixed password string.Any request using the
DELETE
method should always require authentication. Requests should contain a json body with a field calledauth
, which must match the stored password.