ignition icon indicating copy to clipboard operation
ignition copied to clipboard

Basic Authentication for Image URL

Open saadfarooq opened this issue 13 years ago • 2 comments

I don't know if you would want to consider this or not but basic authentication capabilities for the RemoteImageLoader could be handy in some cases.

saadfarooq avatar Feb 20 '12 10:02 saadfarooq

Good point! Do you have a URL to test against, one that requires e.g. a BasicAuth handshake or something?

mttkay avatar Feb 20 '12 10:02 mttkay

I could give you one but then I'd have to kill you...

No seriously. I'll have to ask someone cause they're pretty secretive but I did the following on line 88 of RemoteImageLoaderJob.java

   HttpURLConnection connection = (HttpURLConnection) url.openConnection();

   connection.setRequestProperty("Authorization", "Basic "+ "bm9xd3RvcxU6dHgpa*w=");

No surprise there. All you need is to have a way to pass this down somehow. I can test it for you until I get approval.

saadfarooq avatar Feb 20 '12 11:02 saadfarooq