Results 1 to 5 of 5

Thread: Medicache not forwarding authentication cookies to origin server

  1. #1

    Default Medicache not forwarding authentication cookies to origin server

    I am using mediacache with http access to a web server which stores my video content. The web server validates a session id and an access_token before it returns any content. The wowza server (mediacache) is not sending any of the cookies it receives to the web server. How do I force the mediacache to forward all the cookies received? Is there a way to configure this?

    I am using Wowza 4.01

    Thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Hi,

    No, sorry, there is not a way to do this with cookies. You can use querystrings

    Richard

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Also, you can base64 encode the stream name with its querystring for security. You have to add this Property to the MediaCacheSource Properties container:

    <Property>
    	<Name>base64DecodeStreamName</Name>
    	<Value>true</Value>
    	<Type>Boolean</Type>
    </Property>
    Richad

  4. #4

    Default

    Thank you Richard.
    The "Origin Server" is used by multiple web servers as the store for content. The Origin server implements a security mechanism where it needs the access_token which is a part of the cookie. It is not possible to change the Origin server security implementation. But what I could do is to implement the security mechanism as a Wowza module. This way I can implement the security mechanism in "onHTTPSessionCreate". If the authentications fails then I can reject the HTTP request else Wowza will pass the request to the origin Server. We can configure the origin server to skip the security check for some known source IP's.

    On Wireshark I find that the HTTP request arriving at Wowza:1935 has the cookies and query string. I assume I sill have access to these in "onHTTPSessionCreate" call back. Is this correct?

    I am new to Java and using Eclipse IDE for the first time, the task is overwhelming. Is there a tutorial which describes how I could create a custom module and create a Jar file out of it. Essentially how would I create Custom modules without using Wowza IDE.

    Thanks.

  5. #5

    Default

    Hi,

    The Media Cache requests from Wowza to the web server are not related to any single player session so what you are wanting to do would not be possible. Also the Media Cache uses a very simple http client that does not support cookies.

    If you want to validate your player session, you can use onHTTPSessionCreate. Any cookies that have been sent to the server should be visible in the session.

    As Richard mentioned, you can pass query string variables through to the web server via Media Cache but you do need to encode the stream name complete with the variables so that they do not get stripped out by the session.

    Roger.

Similar Threads

  1. Forwarding live stream publishing / Authentication
    By rogersmarin in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 01-12-2014, 09:54 PM
  2. setup medicache in standalone wowza server
    By dhamibirendra in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 2
    Last Post: 08-16-2013, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •