Hi Ahmed,
yes, Opencast uses Digest Authentication. Not sure how you would use this with php, but here are some details on how it works: https://opencast.jira.com/wiki/display/MH/Remote+Services
regards
--
You received this message because you are subscribed to the Google Groups "Opencast Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.
raw response: HTTP/1.1 401 An Authentication object was not found in the SecurityContext Set-Cookie: JSESSIONID=efs1sy99nwtaykf79qi097d8;Path=/ WWW-Authenticate: Digest realm="Opencast", qop="auth", nonce="MTQ3MjMyMTQ5NjAzODo1ZGNlNzdkNmU4ZDE4MzVjOTk2MTcwNTFjNGJkNTNhZg==" Content-Type: text/html;charset=ISO-8859-1 Cache-Control: must-revalidate,no-cache,no-store Content-Length: 1489 Server: Jetty(8.1.17.v20150415) HTTP/1.1 200 OK Set-Cookie: JSESSIONID=tqursqs0kfu5116h59kotili7;Path=/ Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: application/json Date: Sat, 27 Aug 2016 18:06:36 GMT Transfer-Encoding: chunked Server: Jetty(8.1.17.v20150415) {"search-results":{"offset":"0","limit":"11","total":"11","searchTime":"1","query":"oc_deleted:false AND oc_latest_version:true"..............>>>>
You can see at the bottom that I can get the data, I just want to get JSON.
from the php log file I can see that, request is sent then I get a message that "Authentication object was not found in the SecurityContext". at this point what
it dose is it set the cookie with the following "Set-Cookie: JSESSIONID=efs1sy99nwtaykf79qi097d8;Path=/ WWW-Authenticate: Digest realm="Opencast", qop="auth", nonce="MTQ3MjMyMTQ5NjAzODo1ZGNlNzdkNmU4ZDE4MzVjOTk2MTcwNTFjNGJkNTNhZg=="". then another request is sent to get
json data.
if you know how you can go directly and get json data please help me.
best wishes
and thanks againg