josephnhtam / live-streaming-server-net

A .NET implementation of RTMP live streaming server, supporting HTTP-FLV, WebSocket-FLV, HLS, Kubernetes, cloud storage services integration and more.
https://josephnhtam.github.io/live-streaming-server-net/
MIT License
74 stars 11 forks source link

Authentication Sample #18

Closed vishalsmart closed 2 months ago

vishalsmart commented 2 months ago

Hi @josephnhtam this is really a great work! I want to inject some mechanism for authentication, example - My API server will give code to push stream, but before allowing push I want to verify the code. Can you share some sample how the inbuilt authentication can be used or customized. I could not find any sample for that on repository.

Also I am open to contribute some sample for the same if you allow, like db authentication or bearer etc, if you guide.

Vishal

josephnhtam commented 2 months ago

Hi @vishalsmart Thank you for your feedback. I have added an authorization demo. Please feel free to create a pull request if you want to contribute.

Besides, I am planning to add unit tests for facilitating any contribution.

vishalsmart commented 2 months ago

@josephnhtam thanks for quick implementation!