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

Webhook Authentication For WebRTC Play

Open lastpeony opened this issue 10 months ago • 3 comments

https://github.com/ant-media/Ant-Media-Server/issues/6211

With this form this PR breaks backward compatability of webhook publish authentication because there is a new app setting webhookPublishAuthEnabled and webhookPlayAuthEnabled previously webhook auth was only for publish and webhook publish was enabled if webhook auth url is not empty.

lastpeony avatar Apr 18 '24 14:04 lastpeony

hi @lastpeony ,

Thank you for the implementation.

I read your comment and had a review of the PR. I'd like to discuss if there is an alternative way to make this implementation without breaking backward compatibility. Because the cost of breaking backward compatibility includes extra support and unhappy users, which may mean churn.

Then my question is: What's the alternative implementation to not break backward compatibility?

mekya avatar Apr 27 '24 14:04 mekya

Hi @mekya Thank you for the review. We can eliminate webhookPublishAuthEnabled and webhookPlayAuthEnabled, and instead utilize webhookAuthUrl exclusively for publishing purposes while introducing a new setting for webhookPlayAuthUrl. This adjustment might appear confusing in the app settings, but with your approval, I can implement it to maintain backward compatibility.

lastpeony avatar Apr 27 '24 14:04 lastpeony

Thank you @lastpeony

mekya avatar May 17 '24 05:05 mekya