cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-52) API: FileTransfer - Basic Authentication
Date Sun, 17 Mar 2013 06:34:12 GMT

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

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

Heh I did not know about that JS function. Not sure if it has broad support everywhere though,
but that's easy to test. In this case we would use btoa: https://developer.mozilla.org/en-US/docs/DOM/window.btoa

I'd rather we add this to cordova-js for this feature then, since I think all platforms have
the header support.

Yup, it will require that extra request for my method. My proposed patch was a quick and dirty
code insertion without having to muck about with any other working parts - tradeoff is the
extra request.

When I tested it, no - the creds in the URL are not read by the server, but who knows it might
just have been the server I was testing with.

 
                
> 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
>
>         Attachments: patch_commit_e6a2ffb1defb.patch
>
>
> 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

Mime
View raw message