abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varadharajan Sethuraman <vara...@ymail.com>
Subject AbderaClient to *not* use an Authentication on SSO
Date Fri, 18 Dec 2009 22:41:44 GMT
Hi,

I have problem with AbderaClient 0.4.0 on Single Sign ON environment.
In Single Sign ON environment, I am always getting an Unauthorized Error.


Here is my code snippet
--------------------------------------

            Abdera abdera = new Abdera();
            AbderaClient client = new AbderaClient(abdera);

            for (int i = 0; i < cookies.length; i++) {
                client.addCookie(host, cookies[i].getName(), cookies[i].getValue());
            }

            post_uri = "http" + "://" + host + post_uri;
           
            resp = client.post(post_uri, entry);
            switch(resp.getType()) {
              case SUCCESS:
                System.out.println("New entry created at: " + resp.getLocation().toASCIIString());
                break;
              default:
                System.out.println("Error: " + resp.getStatusText());
            }


where

cookies array, which I got it from external server and it has JSESSIONID, LtpaToken2, and
LtpaToken.

could you please provide me the solution for my issue?

Regards
Rajan




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message