RTSP Server custom authentication : subclass RTSPAuth, add RTSPContext getters, add RTSPMessage
I am integrating GStreamer RTSP server via gstreamer-rs bindings in a project where user authentication and access control are delegated to an external service, so default GstRtspAuth does not really suit my needs and I need a custom implementation.
I have made some modifications to gstreamer_rtsp and gstreamer_rtsp_server to support my custom code (only modified gstreamer-rs bindings, not gstreamer code) :
- subclass RTSPAuth and override authenticate/check/generate_authenticate_header methods
- add some getters to RTSPContext to retrieve request, response and security token (and one method to replace token)
- add RTSPMessage to add an authentication header to a request / retrieve authentication parameters from a response
Is it possible to get fork permission to share my code ? I think it might be useful to others.