cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-52) API: FileTransfer - Basic Authentication
Date Sat, 16 Mar 2013 06:56:12 GMT


Shazron Abdullah commented on CB-52:

[~agrieve] I believe NSURL will encode this from string, not sure (in any case when the URL
is passed through the bridge it's verbatim)

[~purplecabbage] yup, that is the method mentioned in the link in my first comment. I suppose
I could detect the user:pass and just create the appropriate header (since we have a base64
lib in native). We could do this in JavaScript automatically but I don't think Cordova includes
a js base64 function. As API implementors I'd rather provide them an easier path as provided
by the URL spec 
> API: FileTransfer - Basic Authentication
> ----------------------------------------
>                 Key: CB-52
>                 URL:
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 2.6.0
> reported at:
> by:
> (This feature request is platform-agnostic and has been posted here due to the comments
in #phonegap)
> I'd appreciate an optional parameter for FileUploadOptions allowing to pass Basic Authentication
credentials. Combined with HTTPS, Basic Authentication can introduce minimal security when
upload files.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message