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

Shazron Abdullah commented on CB-52:
------------------------------------

Rather than handle a new property for 
FileUploadOptions:http://docs.phonegap.com/en/2.5.0/cordova_file_file.md.html#FileUploadOptions

, I would transparently handle this through the URL itself. So if a username 
and password pair are in the URL like so:

http://myusername:[email protected]/?foo=bar

I would save the credentials, then when I get a HTTP Basic Auth challenge, use 
those creds.

We could use this for FileTransfer download transparently as well.

                
> 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