[ 
https://issues.apache.org/jira/browse/CB-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13604138#comment-13604138
 ] 

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: https://issues.apache.org/jira/browse/CB-52
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 2.6.0
>
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/177
> by: https://github.com/berb
> (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: http://www.atlassian.com/software/jira

Reply via email to