ITunes proxy authentication

How to use itunes through a proxy server with transparent authentication with Microsoft AD? Itunes constantly asks for a password, and if you specify to save the password after password change attempts to authenticate the user under the old password does not work and has not deleted the file keychain.plist? How can I fix this?

I have this issue, but at least 10.7 gives you the option to put in your authentication details.
iTunes 11 does not have proxy authentication at this point in time so do not upgrade if you require this.
I have upgraded to version 11 and now can't access the iTunes store.

Similar Messages

  • ITunes Proxy Authentication & iTunes Store can't connect

    1) Stop Proxy Authentication Window
    To solve the issue with the Proxy Authentication window coming up over and over please add the following to lines to your Proxy Configuration above the first DENY rule:
    acl iTunes browser iTunes
    http_access allow iTunes
    2) Access Content in iTunes Store with Proxy
    If you are having any issue with Content being displayed in the Store with Proxy, please follow the steps below:
    In the Internet settings remove the tick next to "Autodetect" and "Proxy Server"
    Launch iTunes and Connect to the Store (you should see no result when on Corporate network with Proxy)
    in the Internet settings add the tick to "Autodetect" (or) 'Proxy Server" (set as you had before)
    Launch iTunes and conenct to the Store, you should see content.
    If you did above whilst on Corporate network with Proxy you will see badly rendered Content.
    If you did above off Corporate network with no Proxy conencted to the Internet you will see the Store rendered correctly.
    If you try this step once off the Corporate Network, the rendered content looks correct even when you connect to iTunes store via Proxy after the fact.

    I have the same problem. The only firewall which I use is the wondoes firewall
    Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)
    System manufacturer System Product Name
    iTunes 7.5.0.20
    CD-Treiber 2.0.6.1
    CD-Treiber-DLL 2.0.6.2
    Current user is an administrator.
    Current date and time are 2007-12-27 21:25:50.
    Info on the screen:
    NVIDIA GeForce 7900 GS
    ** Network connectivity tests **
    About Network Adapter
    Adapter Name: (02E5BAB0-654B-4891-A2D6-D1EB7766ECA4)
    Description: NVIDIA nForce Networking Controller - Packet Scheduler Miniport
    IP address: 192.168.0.4
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.0.1
    DHCP enabled: Yes
    DHCP server 192.168.0.1
    Lease receive: Thu Dec 27 2007
    Lease ends: Tue Jan 19 2038
    DNS Server: 83,169,185,161
    83,169,185,161
    83,169,185,225
    Active: LAN connection
    Connected: Yes
    With the Internet: Yes
    Modem in use: No.
    LAN in use: Yes
    Proxy in use: No.
    About Firewall
    Windows firewall is activated.
    ITunes is in Windows firewall enabled.
    Connection with the Apple Web site has been successful.
    Connection with the iTunes store had failed.
    The network connection has been rejected.
    Secure connection with the iTunes store had failed.
    The network connection has been rejected.
    The establishment of a secure connection to the iPhone activation server was successful.
    I'm german so this is a translation with google, because I don't have time now, sorry

  • ITunes proxy authentication BUG

    Hello there,
    i´m starting the iTunes 10.7 under Windows 7.
    iTunes 10.7 gets the proxy settings from the IE9. Now the iTunes wants an proxy authentication o.k. ... but in my case i must repeat the loggin 5 TIMES.
    Remember my Passwort ... dont work....
    Anyone else have the same Problem?
    Does anyone know iTunes 11 fix the proxy authentication BUG ???
    How can i solve this problem ?

    I have this issue, but at least 10.7 gives you the option to put in your authentication details.
    iTunes 11 does not have proxy authentication at this point in time so do not upgrade if you require this.
    I have upgraded to version 11 and now can't access the iTunes store.

  • ITunes 10.6 Proxy Authentication Problem

    As all we know, since we've installed iTunes 10.6, we're having issues with proxy authentication. Whenever i want to connect to iTunes Store or open iTunes it always asks me about my username and password even thoug i check Remember Me check box.
    I wonder if you did gave any feedback or answer from Apple?
    Thanks

    same issue, even w/ the 10.6.3 update.
    very disappointing.
    looks like this thread is a duplicate of https://discussions.apple.com/thread/3803634?start=0&tstart=0

  • Mac Adobe Flash Player not supporting Web Proxy Authentication

    Anyone else got an enterprise network where you use web proxies with web authentication and no traffic allowed out except through the proxies?
    You may need to be in the UK for this, but try accessing BBC iPlayer content - http://www.bbc.co.uk/iplayer and you should discover that the content won't play. the error says "This content doesn't seem to be working. Try again later.". The content will never work as the Mac version of Flash (currently 10.1.53.64) is not able to respond to web proxy authentication requests. The BBC use various streaming server which are randomly selected when a user starts a stream and they have no DNS. Just IP addresses. They don't publish a list for security reasons. So it is almost impossible to exempt all their servers from authentication.
    I've logged a bug with Adobe. If you have this issue too, please add a comment and vote so that they can begin to grasp the impact of this problem:
    https://bugs.adobe.com/jira/browse/FP-5161

    I have the same issues in Australia trying to access flash content from the ABC website. The strange thing is the content will play if your leave the browser open for 5min.
    After several packet data captures we identified that it has to do with the amount of time it takes the Mac timeout from the proxy before it plays the video content.
    No solution yet.

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • How to set proxy authentication using java properties at run time

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

    Hi All,
    How to set proxy authentication using java properties on the command line, or in Netbeans (Project => Properties
    => Run => Arguments). Below is a simple URL data extract program which works in absence of firewall:
    import java.io.*;
    import java.net.*;
    public class DnldURLWithoutUsingProxy {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
              u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    }However, it generated the following message when run behind the firewall:
    cd C:\Documents and Settings\abc\DnldURL\build\classes
    java -cp . DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:510)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:615) at java.net.URL.openStream(URL.java:913) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    I have also tried the command without much luck either:
    java -cp . -Dhttp.proxyHost=wwwproxy -Dhttp.proxyPort=80 DnldURLWithoutUsingProxy
    Oops- an IOException happened.
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.yahoo.com.au/index.html
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245) at java.net.URL.openStream(URL.java:1009) at DnldURLWithoutUsingProxy.main(DnldURLWithoutUsingProxy.java:17)
    All outgoing traffic needs to use the proxy wwwproxy (alias to http://proxypac/proxy.pac) on port 80, where it will prompt for valid authentication before allowing to get through.
    There is no problem pinging www.yahoo.com from this system.
    I am running jdk1.6.0_03, Netbeans 6.0 on Windows XP platform.
    I have tried Greg Sporar's Blog on setting the JVM option in Sun Java System Application Server (GlassFish) and
    Java Control Panel - Use browser settings without success.
    Thanks,
    George

  • Powershell Error for SharePoint Online -"The remote server returned an error: (407) Proxy Authentication Required."

    I am trying to call sharepoint online from powershell. Below is the code. I get 
    Exception calling "ExecuteQuery" with "0" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
    $loadInfo1 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
    $loadInfo2 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")
    $webUrl = "ZZZZ"
    $username = "XXX"
    $password = "YYYY"
    $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl) 
    $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
    $web = $ctx.Web
    $lists = $web.Lists 
    $ctx.Load($lists)
    $ctx.ExecuteQuery()
    $lists| select -Property Title
    Raj-Shpt

    Hi,
    About how to access SharePoint online site using PowerShell, the blog below would be helpful:
    http://social.technet.microsoft.com/wiki/contents/articles/29518.csom-sharepoint-powershell-reference-and-example-codes.aspx
    Another two demos for your reference:
    http://www.hartsteve.com/2013/06/sharepoint-online-powershell/
    http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • PHP iTunes U authentication issue

    I’ve been working with integrating iTunes U with Moodle. On the Moodle site there is an iTunes U block available for integrating the 2 systems. I’ve been trying to use this and I am able to get to the iTunes U site from Moodle, but I am not being signed into the site as an authenticated user. I can’t seem to figure out why. I was however able to authenticate with a Perl script.
    The Moodle block has a Setting section where I fill in all my site specific information such as the Shared Secret. This is definitely working fine as I am able to get to my site without issue. But, the passing of the credentials and identity do not seem to be working because I am not being signed in as an authenticated user.
    Right now my Credentials are very basic – formatted just like the sample ones – such as:
    Adminstrator@urn:mace:itunesu.com:sites:example.edu (where example.edu is my school’s name).
    Can anyone review the files below and shed some light on why I am not getting authenticated?
    Thanks.
    Itunes_redirect.php
    <?php // $Id: itunesu_redirect.php,v 1.1 2008/06/06 19:08:49 mchurch Exp $
    require_once('../../config.php');
    global $USER, $CFG;
    require_once($CFG->dirroot.'/lib/weblib.php');
    require_once($CFG->dirroot.'/lib/moodlelib.php');
    require_once($CFG->dirroot.'/blocks/itunesu/itunes.php');
    if (!isloggedin()) {
    print_error('sessionerroruser', '' , $CFG->wwwroot);
    $destination = required_param('destination', SITEID, PARAM_INT); // iTunes U destination
    $name = fullname($USER);
    /* Create instance of the itunes class and initalized instance variables */
    $itunes = new itunes();
    $itunes->setUser($name, $USER->email, $USER->username, $USER->id);
    /* more work needs to be done with determining credentials */
    $itunes->setAdminCredential($CFG->blockitunesuadmincred);
    $itunes->setInstructorCredential($CFG->blockitunesuinsturctcred);
    $itunes->addAdminCredentials();
    $itunes->setSiteURL($CFG->blockitunesuurl);
    $itunes->setSharedSecret($CFG->blockitunesusharedsecret);
    $itunes->setDestination($destination);
    $itunes->invokeAction();
    ?>
    Itunes.php file:
    <?php
    # iTunes Authentication Class
    # Written by Aaron Axelsen - [email protected]
    # University of Wisconsin - Whitewater
    # Edited by Ryan Pharis, [email protected] - Texas Tech University
    # Class based on the Apple provided ITunesU.pl
    # example script.
    # REQUIREMENTS:
    # PHP:
    # - tested with PHP 5.2
    # - make sure hash_hmac() works - <a class="jive-link-external-small" href="http://us2.php.net/manual/en/function.hash-hmac.php">http://us2.php.net/m anual/en/function.hash-hmac.php</a>
    # - php curl support
    #Example Usage:
    <?php
    include('itunes.php');
    $itunes = new itunes();
    // show loading screen while processing request
    //include(ROOTURL.'/includes/pages/itunesload.php');
    // Set User
    $itunes->setUser("Jane Doe", "[email protected]", "jdoe", "42");
    // Set Admin Permissions
    $itunes->addAdminCredentials();
    // Set Instructor Permission
    //$itunes->addInstructorCredential('uniquename_fromitunes');
    // Set Student Credential
    //$itunes->addStudentCredential('uniquename_fromitunes');
    // Set Handle
    // This will direct login to the specific page
    #$itunes->setHandle('');
    // iTunes U Auth Debugging
    $itunes->setDebug(true);
    $itunes->invokeAction();
    ?>
    class itunes {
    // Oktech - add
    var $authtoken;
    var $siteURL;
    var $debugSuffix;
    var $sharedSecret;
    var $administratorCredential;
    var $instructorCredential;
    var $studentCredential;
    var $urlonly;
    var $urlcredentials;
    var $destination;
    // Oktech
    * Create iTunes Object
    public function __construct() {
    $this->setDebug(false);
    $this->siteURL = 'https://deimos.apple.com/WebObjects/Core.woa/Browse/example.edu';
    $this->directSiteURL = 'https://www.example.edu/cgi-bin/itunesu';
    $this->debugSuffix = '/abc1234';
    $this->sharedSecret = 'STRINGOFTHIRTYTWOLETTERSORDIGITS';
    $this->administratorCredential = 'Administrator@urn:mace:itunesu.com:sites:example.edu';
    $this->studentCredential = 'Student@urn:mace:itunesu.com:sites:example.edu';
    $this->instructorCredential = 'Instructor@urn:mace:itunesu.com:sites:example.edu';
    $this->credentials = array();
    // Set domain
    $this->setDomain();
    // Oktech add
    public function getInstructorCredential() {
    return $this->instructorCredential;
    public function setInstructorCredential($credential) {
    $this->instructorCredential = $credential;
    public function getStudentCredential() {
    return $this->studentCredential;
    public function setStudentCredential($credential) {
    $this->studentCredential = $credential;
    public function getAdminCredential() {
    return $this->administratorCredential;
    public function setAdminCredential($credential) {
    $this->administratorCredential = $credential;
    public function getSharedSecret() {
    return $this->sharedSecret;
    public function setSharedSecret($sharedsecret) {
    $this->sharedSecret = $sharedsecret;
    public function getAuthToken() {
    return $this->authtoken;
    public function setAuthToken($authtoken) {
    $this->authtoken = $authtoken;
    public function getDebugSuffix() {
    return $this->directSiteURL;
    public function setDebugSuffix($debugsuffix) {
    $this->directSiteURL = $debugsuffix;
    public function getSiteURL() {
    return $this->siteURL;
    public function setSiteURL($siteurl) {
    $this->siteURL = $siteurl;
    * Extract the URL from the return html
    * block from the iTunes U server. Replace
    * Apple's itmss tag with https
    private function extractURL($htmlblock) {
    $remainder = '';
    $pos = 0;
    $result = '';
    $remainder = strstr($htmlblock, "_open('i");
    $remainder = substr_replace($remainder, '', 0, 7);
    $remainder = substr_replace($remainder, 'https', 0, 5);
    $pos = strpos($remainder, "');");
    $result = substr_replace($remainder, '', $pos);
    $this->urlonly = $result;
    public function getExtractedURL() {
    return $this->urlonly;
    * Extract the credentials part from the returned URL from
    * the iTunes U server
    public function extractURLCredentials($url) {
    $result = '';
    $pos = 0;
    $remainder = strstr($url, "gtcc.edu?");
    $remainder = substr_replace($remainder, '', 0, 9);
    $this->urlcredentials = $remainder;
    public function getExtractedURLCredentials() {
    return $this->urlcredentials;
    public function setDestination($destination) {
    $this->destination = $destination;
    public function getDestination() {
    return $this->destination;
    // Oktech add
    * Add's admin credentials for a given user
    public function addAdminCredentials() {
    $this->addCredentials($this->administratorCredential);
    * Add Student Credential for a given course
    public function addStudentCredential($unique) {
    $this->addCredentials($this->studentCredential.":$unique");
    * Add Instructor Credential for a given course
    public function addInstructorCredential($unique) {
    $this->addCredentials($this->instructorCredential.":$unique");
    * Set User Information
    public function setUser($name, $email, $netid, $userid) {
    $this->name = $name;
    $this->email = $email;
    $this->netid = $netid;
    $this->userid = $userid;
    return true;
    * Set the Domain
    * Takes the siteURL and splits off the destination, hostname and action path.
    private function setDomain() {
    $tmpArray = split("/",$this->siteURL);
    $this->siteDomain = $tmpArray[sizeof($tmpArray)-1];
    $this->actionPath = preg_replace("/https:\/\/(.+?)\/.*/",'$1',$this->siteURL);
    $pattern = "/https:\/\/".$this->actionPath."(.*)/";
    $this->hostName = preg_replace($pattern,'$1',$this->siteURL);
    $this->destination = $this->siteDomain;
    return true;
    * Set the Handle
    * Takes the handle as input and forms the get upload url string
    * This is needed for using the API to upload files directly to iTunes U
    public function setHandle($handleIn) {
    $this->handle = $handleIn;
    $this->getUploadUrl = "http://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL/".$this->siteDoma in.'.'.$this->handle;
    return true;
    * Get Identity String
    * Combine user identity information into an appropriately formatted string.
    * take the arguments passed into the function copy them to variables
    private function getIdentityString() {
    # wrap the elements into the required delimiters.
    return sprintf('"%s" <%s> (%s) [%s]', $this->name, $this->email, $this->netid, $this->userid);
    * Add Credentials to Array
    * Allows to push multiple credientials for a user onto the array
    public function addCredentials($credentials) {
    array_push($this->credentials,$credentials);
    return true;
    * Get Credentials String
    * this is equivalent to join(';', @_); this function is present
    * for consistency with the Java example.
    * concatenates all the passed in credentials into a string
    * with a semicolon delimiting the credentials in the string.
    private function getCredentialsString() {
    #make sure that at least one credential is passed in
    if (sizeof($this->credentials) < 1)
    return false;
    return implode(";",$this->credentials);
    private function getAuthorizationToken() {
    # Create a buffer with which to generate the authorization token.
    $buffer = "";
    # create the POST Content and sign it
    $buffer .= "credentials=" . urlencode($this->getCredentialsString());
    $buffer .= "&identity=" . urlencode($this->identity);
    $buffer .= "&time=" . urlencode(mktime());
    # returns a signed message that is sent to the server
    $signature = hash_hmac('SHA256', $buffer, $this->sharedSecret);
    # append the signature to the POST content
    return sprintf("%s&signature=%s", $buffer, $signature);
    * Invoke Action
    * Send a request to iTunes U and record the response.
    * Net:HTTPS is used to get better control of the encoding of the POST data
    * as HTTP::Request::Common does not encode parentheses and Java's URLEncoder
    * does.
    public function invokeAction() {
    $this->identity = $this->getIdentityString();
    $this->token = $this->getAuthorizationToken();
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $this->generateURL() . '?' . $this->token);
    //curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    // Oktech - change
    $this->authtoken = curl_exec($ch);
    curl_close($ch);
    /* Start a new sesstion and send a request for specific content with the appropriate credentials */
    $ch = curl_init();
    $this->extractURL($this->authtoken);
    $this->extractURLCredentials($this->urlonly);
    curl_setopt($ch, CURLOPT_URL, $this->siteURL . '.' . $this->destination . '?' . $this->urlcredentials);
    //curl_setopt($ch, CURLOPT_POST, 1);
    curl_exec($ch);
    curl_close($ch);
    // Oktech
    * Auth and Upload File to iTunes U
    * This method is said to not be as heavily tested by apple, so you may have
    * unexpected results.
    * $fileIn - full system path to the file you desire to upload
    public function uploadFile($fileIn) {
    $this->identity = $this->getIdentityString();
    $this->token = $this->getAuthorizationToken();
    // Escape the filename
    $f = escapeshellcmd($fileIn);
    // Contact Apple and Get the Upload URL
    $upUrl = curl_init($this->getUploadUrl.'?'.$this->token);
    curl_setopt($upUrl, CURLOPT_RETURNTRANSFER, true);
    $uploadURL = curl_exec($upUrl);
    $error = curl_error($upUrl);
    $http_code = curl_getinfo($upUrl ,CURLINFOHTTPCODE);
    curl_close($upUrl);
    print $http_code;
    print "
    $uploadURL";
    if ($error) {
    print "
    $error";
    # Currently not working using php/curl functions. For now, we are just going to echo a system command .. see below
    #// Push out the designated file to iTunes U
    #// Build Post Fields
    #$postfields = array("file" => "@$fileIn");
    #$pushUrl = curl_init($uploadURL);
    #curl_setopt($pushUrl, CURLOPT_FAILONERROR, 1);
    #curl_setopt($pushUrl, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
    #curl_setopt($pushUrl, CURLOPT_VERBOSE, 1);
    #curl_setopt($pushUrl, CURLOPT_RETURNTRANSFER, true);
    #curl_setopt($pushUrl, CURLOPT_POST, true);
    #curl_setopt($pushUrl, CURLOPT_POSTFILEDS, $postfields);
    #$output = curl_exec($pushUrl);
    #$error = curl_error($pushUrl);
    #$http_code = curl_getinfo($pushUrl, CURLINFOHTTPCODE);
    #curl_close($pushUrl);
    #print "
    #print $http_code;
    #print "
    $output";
    #if ($error) {
    # print "
    $error";
    // Set the php time limit higher so it doesnt time out.
    settimelimit(1200);
    // System command to initiate curl and upload the file. (Temp until I figure out the php curl commands to do it)
    $command = "curl -S -F file=@$f $uploadURL";
    echo "
    echo $command;
    exec($command, $result, $error);
    if ($error) {
    echo "I'm busted";
    } else {
    print_r($result);
    echo $command;
    * Set Debugging
    * Enable/Disable debugging of iTunes U Authentication
    public function setDebug($bool) {
    if ($bool) {
    $this->debug = true;
    } else {
    $this->debug = false;
    return true;
    * Generate Site URL
    * Append debug suffix to end of url if debugging is enabled
    private function generateURL() {
    if ($this->debug) {
    return $this->siteURL.$this->debugSuffix;
    } elseif ($this->isHandleSet()) {
    return $this->directSiteURL.'.'.$this->handle;
    } else {
    return $this->siteURL;
    * Check to see if the handle is set
    private function isHandleSet() {
    if (isset($this->handle))
    return true;
    else
    return false;
    ?>

    Janet ... hmmm ... I suppose it could also be "Jane T. Smith" ... ah well, anywho,
    One thing to understand when it comes to credentialling is that, even if your transfer CGI (Moodle block) doesn't work ... if you redirect someone to your iTunes U site, that person will -always- carry two credentials ... "Unauthenticated" and "All". You do not have to assign the credentials ... they are automatic.
    Put it this way, if I direct you to my site:
    https://deimos.apple.com/WebObjects/Core.woa/Browse/uic.edu
    if you click on that link, authentication or no, Apple will give you the "Unauthenticated" and "All" credentials. Anywhere on my site where those creds are good, you'll have access.
    Hmmm ... maybe I can rephrase it this way ... there are four credentials that are a part of every site ...
    All ... everyone who accesses your site gets this cred ... everyone.
    Authenticated ... if you pass a valid iTunes U URL request for a user, he/she will get this cred.
    Unauthenticated ... this cred is given whenever someone gets to your site -without- a tokenized (credentials, identity, time, signature) URL request. For example, if someone uses your site base URL without any modification.
    Administrator ... this cred has total access to a site.
    So if you access your site using your admin cred, you'll actually carry three creds ... "Administrator" (of course), but also "All" and "Authenticated".
    So why this long discussion of creds? Well, if you're getting in with the "Unauthenticated" credential, it's a sure sign your transfer CGI (Moodle thingy) isn't working ... at all. It's not that you can't pass the admin cred ... or identity info ... you're not passing any info. And because you're not passing any info, iTunes U does the default thing ... give you "All" and "Unauthenticated" access.

  • Administration of APEX in SQL Developer with Proxy Authentication impossibl

    Hello!
    We are using latest version of SQL Developer to administer APEX. We are connecting to the database with proxy authentication. The syntax is:
    personal_user[apex_ws_owner]
    e.g.: mdecker[apex_demo]
    When trying to deploy APEX application I go to "Database Object" -> Application Express -> Application1 [100] -> right mouse click: "Deploy Application". Then I select the appropriate database identifier and next, I am presented with a screen showing import options. In second line, it says: "Parsing Schema: MDECKER".
    This is wrong: it has to be Parsing Schema: APEX_DEMO. It seems that managing APEX with SQL Developer does not support Proxy Authentication.
    Could you please confirm?
    Is there a way to formally ask for this enhancement?
    Best regards,
    Martin
    Update:
    I found out that if I check the flag "Proxy Authentication" in the connect details and provide both passwords, the deploy application parsing schema is set to the correct APEX_DEMO account. However, we are using Proxy Authentication in order to avoid having to know the application password.
    Edited by: mdecker on Jan 28, 2013 4:48 PM

    There is a write-up about connecting to APEX here: <a href ="http://www.oracle.com/technology/products/database/application_express/html/sql_dev_integration.html" >SQL Dev Oracle APEX Integration</a>
    <p>You do need to have updated to Oracle APEX 3.0.1.
    <p>Regards <br>
    Sue

  • How to pass Proxy user dynamically in Toplink proxy authentication?

    Hi,
    I'm using Toplink Proxy Authentication with my ADF JSF application and want to pass the Proxy user dynamically to the preLogin(..) method of mySessionEventListener (Currently proxy user is hard coded).
    This is to make my application user as the Proxy user.
    I have tried to do this in two ways:
    1) In my Login screen Backing Bean, I retrieve the session as
    session = sessionFactory.acquireSession(); and set the application user in it as
    session.setProperty("proxyUser1", inputText1.getValue());
    But,
    session.getProperty("proxyUser1") returns null in the preLogin(..) method
    2) I add a loginUser property to the mySessionEventListener class and create a constructor to set it.
    Then I call the constructor from my Login Backing Bean as
    mySessionEventListener eventMgr = new mySessionEventListener(<proxy_user>);
    session.getEventManager().addListener( eventMgr );
    But, the loginUser property seeems to be transient and does not retain value when retrieved in preLogin(..) method.
    Please indicate if anything is wrong. Also, is there any other way to get this done?
    Thanks in advance.
    Vikas

    Hi Vikas,
    Probably your sessions.xml defines a ServerSession, and acquireSession method returns a ClientSession. ServerSession is the object that connects to the database, it may have any number of ClientSessions associated with it - all of them use connections provided by ServerSession's connection pools.
    So if you'd like to alter the serverSession before login, acquireSession is too late - it triggers login of the ServerSession and returns a ClientSession.
    To get the ServerSession before login:
    // the first param indicates that the session shouldn't be connected
    Session serverSession = sessionFactory.getSharedSession(false, false);Now you have a serverSession on which login hasn't been called yet.
    You can set the property into the session, or directly into its login.
    In fact you may choose to do whatever you wanted to do in preLogin right here - in this case no preLogin event would be required of course.
    Finally to get a ClientSession, call the same api did:
    // the first param indicates that the session shouldn't be connected
    Session clientSession = sessionFactory.getSession();On the first such call the ServerSession will be connected.
    Note that because all the ClientSessions will connect through the connections provided by the same ServerSession they will all use proxyUser1.
    If you are interested in using different proxy users for different ClientSessions http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/dblgcfg008.htm#BABDABCF lists several scenarios for that.
    Andrei

  • Oracle Proxy Authentication and WLS 8.1/CMP

    Hey folks,
    Is there any way to configure WLS 8.1 to automatically set the Oracle CLIENT_IDENTIFIER
    variable or use Oracle Proxy Authentication on JDBC connections? I'm interested
    in using Oracle auditing with my CMP entity beans, but would like to capture the
    app tier user identity, instead of the data source pool user.
    Thanks.

    "Brent Smith" <[email protected]> wrote in message
    news:3fa15807$[email protected]..
    >
    Hey folks,
    Is there any way to configure WLS 8.1 to automatically set the OracleCLIENT_IDENTIFIER
    variable or use Oracle Proxy Authentication on JDBC connections? I'minterested
    in using Oracle auditing with my CMP entity beans, but would like tocapture the
    app tier user identity, instead of the data source pool user.
    I would ask in the weblogic.developer.interest.jdbc newsgroup.

  • Acrobat Standard Proxy Authentication

    Hi,
    When we sign our PDF's we want to use an external timestamping server
    So we have configured both a Verisign and Globalsign timestamping server and made one of them as default
    Most of the time we got a response from Acrobat saying
    "Timestamp signature property generation error:
    Transport authorization failure"
    When it fails the doc is signed, but using the computers clock and we want to avoid that
    But sometime it did work which confused us but I think we have identified the problem with the Proxy authentication
    Our proxy requires full authetication against our Active Directory
    So when it worked was just because we just before signing had been surfing on the internet and the proxy had cached the credential approvals
    So when Adobe tried to get out to the timestamp server the ID was already authorized in the proxy
    But without a previous "IE-surfing" it fails, the proxy has nothing in its cache
    A network trace confirms this,  we see a "Authentication required" request from the proxy that Acrobat never responds to
    The proxy does not accept annonymous requests
    IE is configured to use a configration script for its proxy settings
    I cant find any relevant Acrobat settings that handles this and googling indicates that Acrobat has problems in this area
    But I haven't found anything for our version/release
    Now for the question, is Adobe Acrobat Standard 9.3.0 supposed to handle proxys that requires AD authentication?
    To bypass the proxy is not an option
    Setting a proxy exception for these servers is maybe an option
    Prefered is that Acrobat handles this

    To update my own question since it might help others
    I received assistance through the Adobe support channels
    Not what I was hoping for but it clarifies the problem
    The reason I asked the question is that we don’t support Shared Review with an Authenticating Proxy server. So this customer workflow isn’t too far off the mark with having a proxy server authentication expectation in the standalone client and wanting a timestamp server time.   The only workaround to this behavior is to do exactly what they have found.  Launch an instance of Internet Explorer, authenticate against the proxy server and then sign the PDF file.

  • Http proxy authentication for JDev 10.1.3

    Hi,
    I found the http proxy settings in the "tools->preferences->Web Browser and Proxy" but there are no settings for the username and password. Is there some other way that I can add these.
    The problem is that whenver JDeveloper wants to do some http stuff it (or something else is doing it) asks me for the proxy user name & password - this happens over and over again. If JDev is doing this then surely it should remember the username & password.
    I sometimes get a JDeveloper dialog "waiting for the connection" come up over the proxy auth dialog and I have to cancel the function so I can authenticate, then re-request the function.
    I wish I didn't have the proxy authentication but I have no choice in this dev environment. I do get to choose JDeveloper at least.
    Regards,
    Simon.

    Hi,
    I get it when I 'check for updates' and I get it again when I 'go to JavaDoc' - and this is the one where the "waiting for connection dialog" pops on top of the proxy log in and I have to cancel it to log in. Then all subsequent 'go to JavaDoc' requests go straight through.
    I would prefer it if I could just configure (in proxy preferences) the username and password so it never asks me. I dont care if it less secure storing the password since I think authenticating proxies are a dumb idea anyway. If the password is not supplied then JDev can ask for it like it does now to keep the security-paranoid people happy.
    Also, this morning I got this Exception which appeared at the same time I got a proxy auth window. When JDev finally started all my previously open windows were lost. No real problem but unexpected. Here is the stack dump:
    java.lang.NullPointerException
         at oracle.jdevimpl.webdav.api.DAVAuthenticator.getPasswordAuthentication(DAVAuthenticator.java:79)
         at java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:300)
         at sun.net.www.protocol.http.HttpURLConnection$1.run(HttpURLConnection.java:267)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordAuthentication(HttpURLConnection.java:263)
         at sun.net.www.protocol.http.HttpURLConnection.getHttpProxyAuthentication(HttpURLConnection.java:1427)
         at sun.net.www.protocol.http.HttpURLConnection.resetProxyAuthentication(HttpURLConnection.java:1246)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:950)
         at oracle.ide.net.HttpURLFileSystemHelper.exists(HttpURLFileSystemHelper.java:191)
         at oracle.jdevimpl.webdav.net.WebDAVURLFileSystemHelper.exists(WebDAVURLFileSystemHelper.java:423)
         at oracle.ide.net.URLFileSystem.exists(URLFileSystem.java:498)
         at oracle.ideimpl.editor.EditorUtil.getNode(EditorUtil.java:126)
         at oracle.ideimpl.editor.EditorUtil.loadContext(EditorUtil.java:91)
         at oracle.ideimpl.editor.TabGroupState.loadStateInfo(TabGroupState.java:950)
         at oracle.ideimpl.editor.TabGroup.loadLayout(TabGroup.java:1758)
         at oracle.ideimpl.editor.TabGroupXMLLayoutPersistence.loadComponent(TabGroupXMLLayoutPersistence.java:31)
         at oracle.ideimpl.controls.dockLayout.DockLayoutInfoLeaf.loadLayout(DockLayoutInfoLeaf.java:123)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:631)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:628)
         at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:614)
         at oracle.ideimpl.controls.dockLayout.DockLayout.loadLayout(DockLayout.java:302)
         at oracle.ideimpl.controls.dockLayout.DockLayoutPanel.loadLayout(DockLayoutPanel.java:128)
         at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:353)
         at oracle.ideimpl.editor.EditorManagerImpl.init(EditorManagerImpl.java:1824)
         at oracle.ide.layout.Layouts.activate(Layouts.java:758)
         at oracle.ide.layout.Layouts.activateLayout(Layouts.java:179)
         at oracle.ideimpl.MainWindowImpl$2.runImpl(MainWindowImpl.java:734)
         at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

  • Proxy Authentication Error in Web Service with SAAJ on Weblogic 9.2 MP3

    Hi,
    I have encountered a problem with proxy authentication in SAAJ web service (WS) calls on Weblogic 9.2 MP3.
    My WS client (which uses SAAJ's SOAP classes) should use a proxy that requires authentication to call the external web services.
    However, it does not perform the authentication and receives HTTP Error 407 - Unauthorized.
    The reason seems to be that Weblogic's Http Handler (weblogic.net.http.Handler) ignores the proxy authentication.
    I was able to work around it by setting sun's http handler explicitly in the WS endpoint URL. Sun's handler (sun.net.www.protocol.http.Handler) makes use of the Authenticator class I provided.
    1. Please see my code below and let me know if this is the only solution or if I'm doing something wrong. While testing on Tomcat I did not have to set the handler.
    2. I have seen that there are also System properties for http.proxyUser and http.proxyPasword, however if I use these and ommit setting the SimpleAuthenticator, it also fails (with either handler!). An explanation of that is welcome.
    Thanks in advance.
    Code:
    ===========================================================
    System.setProperty("http.proxySet", "true");
    System.setProperty("http.proxyHost", "localhost");
    System.setProperty("http.proxyPort", "808");
    //System.setProperty("http.proxyUser", "myuser");
    //System.setProperty("http.proxyPassword", "mypw");
    Authenticator.setDefault(new SimpleAuthenticator("myuser", "mypw"));
    String urlString = "http://someurl:8080/webservice..";
    URL endpoint1 = new URL(urlString);
    URL endpoint2 = new URL(null, urlString, new sun.net.www.protocol.http.Handler());
    SOAPConnectionFactory soapfactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapfactory.createConnection();
    connection.call(message, endpoint1); // Gives Exception with HTTP Error 407
    connection.call(message, endpoint2); // Works and uses the proxy
    For reference:
    ===========================================================
    public class SimpleAuthenticator extends Authenticator {
         private String username, password;
         public SimpleAuthenticator(String username, String password) {
              this.username = username;
              this.password = password;
         protected PasswordAuthentication getPasswordAuthentication() {
              return new PasswordAuthentication(username, password.toCharArray());
    }

    Sorry for the 3 posts.
    Administrator, delete this thread please!!

Maybe you are looking for

  • How do I find out the spec of my old iPod ?

    How do I find out the spec of my old iPod ... I can't remember if it's 2nd or 3rd generation ... it's an 8gb, and that's as much info as I can remember/find in the 'About' area of the iPod ... is there a way to find out please?

  • Closed invoice status field

    Hi All,          which field in vbrk table indicates whether the invoice is closed or not. Is it vbrk-rfbsk = C? Thanks.

  • Generate PDF form

    Hi all, I'm using the code below to generate a pdf form ('ZPDF_TEST_FORM'). When the function in FM_NAME is called, it returns with SY-SUBRC eq 2 and this error message: Adobe document services error: SOAP Runtime Exception: CSoapExceptionFault : SOA

  • Error playing message

    Help please! I have bb8350i with 4.6os. When I play youtube or vtap videos Its always disstored or I get error Playing message. How do I fix this? Thanks 4 any help

  • Stabilize Multicam clip

    Just completing my first multicam project using FCPX. I need to add some stabilization to one of the clips. The problem I have is the stabilization controls are not visible when editing multicam. I am sure that there must be a way, once finishing sel