Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Allow to reduce the the Length of URL in JWT filter

Open USAMAWIZARD opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

To publish the stream we are using AMS RTMP server url with JWT token filter. And our stream url is around 300 characters and and we need to restrict stream url length within 128 chars due to camera vendor validation.

Example stream url length: rtmp://domain.com/WebRTCAppEE/stream_rtmp_a4e5669a-9796-439c-9930-d6334d924f98?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdHJlYW1JZCI6InN0cmVhbV9ydG1wX2E0ZTU2NjlhLTk3OTYtNDM5Yy05OTMwLWQ2MzM0ZDkyNGY5OCIsInR5cGUiOiJwdWJsaXNoIiwiZXhwIjoyMDE1NzU1MTc0fQ.cK0f3XqBeY07qYgB-iiTQdp8c4pO_mtWtPZ-gyjdQ1Y

We use various cameras which have various different restriction related to URL Length.

HI SHARP: supports maximum 140 characters. Uniview: supports maximum 256 characters. Geo vision: supports maximum 256 characters. Describe the solution you'd like

A clear and concise description of what you want to happen.

May be add option to reduce the URL size.

USAMAWIZARD avatar Dec 15 '23 10:12 USAMAWIZARD

Hi @USAMAWIZARD,

As a workaround solution, I can recommend using other tokens(Hash-based, One-Time token).

If there is a request coming from customer side and JWT is must, we can investigate if it's possible.

PS: Investigation expertise is at the beginner level and implementation expertise is likely at intermediate level

Cheers Oguz

mekya avatar May 06 '24 17:05 mekya