-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth & Flash Player #9
Comments
If you are talking of the url auth then mount=X where X is the escape encoded version of the url including the type= info. The encoding is there to keep it separate from the other POST fields. karl. |
but "/mount?type=.flv" has no mount_add or mount_remove if flash player connects to "/stream?type=.flv" , then icecast ask the url auth script, permission for the "/stream?type=.flv" mount and not the "/stream" source - > server:port:8000/mount client auth -> ?action=listener_add&server=&port=&client=&mount=/mount&user=&pass=&ip=&agent= shouldn't be ? flv clien auth -> ?action=listener_add&server=&port=&client=&mount=/mount&type=.flv&user=&pass=&ip=&agent= |
the mount add and remove are triggers for the mountpoint start and exit, whether relay or source client so the flv aspect is unrelated. listener_add is for per listener attempts so requires any arguments passed in the url. the mount arg is encoded (including args) as that is the only safe way to handle it. we do not want listeners to do http://.../stream?ip=127.0.0.1 and risk a fake ip setting to override the expected one. If you do provide auth in the style of /stream?client=123456 then you would have a clash in meaning, client for the web portal or client id of icecast. This way, the encoded string has to be specially handled by the script and the args won't clash. |
but cant be truncated ? if it is working as if the end of mount is "?type=.flv" --> get(make) stream from /mount for a flv player cose for the auth logic... /mount and /mount?type=.flv are the same mount by the same logic it gets more difficult from the auth script to detect if it is "/stream" + "?type=.flv" ( flv of /stream) or "/stream?type=.flv" (the actual name) the auth can give access to users based on server, port and mount, right now im using regex -> |^(/.*)?type=.flv$|isU plus! it gets the data for the auth url for the auth call from "/stream?type=.flv" whiout "type=.flv" ergo "/stream" so whi tell the url auth script it is from the mount "/stream?type=.flv" when it actualy it uses the the data from /stream ?
|
plus! and call the source_auth action=stream_auth&mount=/stream&ip=.... and gets mounted on /stream action=mount_add&mount=/stream&server=... then why the listeners auth ? action=listener_add&mount=/stream?type=.flv&server=... why is not ? action=listener_add&mount=/stream&server=... |
the idea is you url unescape the mount value, and then put that into something like explode ("?&", args), no regex needed. I'm not sure why you are having an issue with the type setting, there are cases where people use auth in a way like /stream?session=123456789, so the args are required to be sent and are required to not clash with the other settings in the POST. karl. |
hoo....ok.... well... is not an issue if you know how it works ( i know now ) action=listener_remove&mount=/stream&args=type=.flv&server= that way... mount... is the mount ( that is my kind of paradigma issue, that now the mount is not just the mount) |
If there is a good enough reason to change then it can be changed, but currently having args= or params= as a separate setting would work. At the moment, I'm keeping consistent first. karl. |
testing/using this flash player - > http://www.fastserv.com/kb/article/icecast_embedded_flash_player/
i notice that when ppl conect it send the auth to the mount but as ...&mount=/stream?type=.flv&...
should it be "...&mount=/stream&type=.flv&..." or "...&mount=/stream&type=flv&..." or "...&mount=/stream&..."??
The text was updated successfully, but these errors were encountered: