[GH-ISSUE #1108] [Feature]: Long-living stream token support for camera API #792

Closed
opened 2026-05-06 12:32:56 +02:00 by BreizhHardware · 1 comment

Originally created by @SMAW on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1108

Originally assigned to: @maziggy on GitHub.

Problem or Use Case

Currently, when using the camera's API, tokens are only valid for 60 minutes. This limits the ability to maintain persistent video streams, such as for home automation or remote monitoring. If I want to stream for longer, I would have to either frequently renew the token or turn off authentication entirely, which isn't secure.

Proposed Solution

It would be great if the API could support long-living (or permanent) tokens specifically for streaming. This would allow users to securely maintain a continuous stream for home automation or similar use cases without disabling authentication.

Example request for a long-living token:

POST /api/token
{
  "username": "user",
  "password": "pass",
  "scope": "stream",
  "expire_in": 0 // 0 means non-expiring
}

Response:

{
  "token": "eyJhbGci...",
  "expire_at": null
}

If security is a concern, optionally make this token revocable from the UI or allow the admin to define the default token lifespan in configuration.

### Alternatives Considered

I've tried using the existing token, but it only lasts for 60 minutes. Disabling authentication altogether works for continuous streaming but is not safe or desirable.

### Feature Category

API

### Priority

Would improve my workflow

### Mockups or Examples

Sample API request included above for context.

### Contribution

- [ ] I would be willing to help implement this feature

### Checklist

- [x] I have searched existing issues to ensure this feature hasn't already been requested
Originally created by @SMAW on GitHub (Apr 24, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1108 Originally assigned to: @maziggy on GitHub. ### Problem or Use Case Currently, when using the camera's API, tokens are only valid for 60 minutes. This limits the ability to maintain persistent video streams, such as for home automation or remote monitoring. If I want to stream for longer, I would have to either frequently renew the token or turn off authentication entirely, which isn't secure. ### Proposed Solution It would be great if the API could support long-living (or permanent) tokens specifically for streaming. This would allow users to securely maintain a continuous stream for home automation or similar use cases without disabling authentication. Example request for a long-living token: ``` POST /api/token { "username": "user", "password": "pass", "scope": "stream", "expire_in": 0 // 0 means non-expiring } ``` Response: ``` { "token": "eyJhbGci...", "expire_at": null } ``` ``` If security is a concern, optionally make this token revocable from the UI or allow the admin to define the default token lifespan in configuration. ### Alternatives Considered I've tried using the existing token, but it only lasts for 60 minutes. Disabling authentication altogether works for continuous streaming but is not safe or desirable. ### Feature Category API ### Priority Would improve my workflow ### Mockups or Examples Sample API request included above for context. ### Contribution - [ ] I would be willing to help implement this feature ### Checklist - [x] I have searched existing issues to ensure this feature hasn't already been requested
BreizhHardware 2026-05-06 12:32:56 +02:00
Author
Owner

@maziggy commented on GitHub (Apr 25, 2026):

Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you.

Docs -> https://wiki.bambuddy.cool/features/camera/?h=camera+tokens#long-lived-camera-tokens

Image

If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:4318573859 --> @maziggy commented on GitHub (Apr 25, 2026): Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you. Docs -> https://wiki.bambuddy.cool/features/camera/?h=camera+tokens#long-lived-camera-tokens <img width="818" height="413" alt="Image" src="https://github.com/user-attachments/assets/d7c248f6-9a89-4d9d-a1af-c4883ca69056" /> ----- If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/maziggy/bambuddy) — it helps others discover the project!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#792
No description provided.