pierre-emmanuelJ / iptv-proxy

Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
GNU General Public License v3.0
481 stars 139 forks source link

Request: Pass-trough username & password to the proxified back-end #49

Closed Znuff closed 3 years ago

Znuff commented 4 years ago

Hello,

Is there any chance to have this work in a "proper" proxy that actually (re)uses the username/password that it gets called on?

What I mean, for the sake of example:

http://iptv-proxy.tld/iptv.m3u?username=$username&password=$password

=>

http://xc-backend.tld/get.php?username=$username&password=$password

This would actually be useful in a few scenarios, like hiding the original XtreamCodes Server's URL.

pierre-emmanuelJ commented 4 years ago

Hello :) If you are using the iptv-proxy with the xtream mode, the original url or user/pass doesn't appear in the file or request.

Only user and pass you chose, appear.

/get.php is also available instead of /iptv.m3u you can keep the same query param as the original provider.

e.g: http://iptv-proxy.example.com:8080/get.php?...etc

Znuff commented 4 years ago

That's not what I asked.

Right now when running with XtreamCodes backend, you set up a specific username/password to be sent to the backend (ie: --xtream-password and --xtream-user).

You also set up a "local" username/pass via --user and --password, which allows access to the proxy itself.

My request is more of, like, what if the username/password received from the client/end-user would actually be sent directly to the XtreamCodes backend?

pierre-emmanuelJ commented 4 years ago

Okay! I got it now after re-reading the issue ;) For the moment xtream user credentials pass-trought is not supported. I put in it the todo-list to add the option or feel free to open a PR 😃

pierre-emmanuelJ commented 3 years ago

duplicated: https://github.com/pierre-emmanuelJ/iptv-proxy/issues/72 we will support it