I want to use BackgroundTransferRequest object to download some large documents but I can't find out how to put credentials like username and password to access the documents. I have ASP.NET MVC 3 controller which give me documents.
Windows phone BackgroundTransferRequest with authentication
357 Views Asked by user3172704 At
2
There are 2 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ASP.NET-MVC-3
- Routing Url that has no action name
- ObjectContext is disposed, can not longer used
- Image Gallery control not loading
- Skip login on MVC 3 application (SSO)
- JSON object passed to Controller is NULL
- What is the best practice for maintain a menu after a page reload? I have this custom code which feels wrong
- RedirectToAction doesn't happen when I start with an AJAX call
- Create view for a child-master relationship
- How to create edit view with a dropdownlist
- Pathname modified with IE
- Getting the property send by api in mvc
- How to create a dynamic dropdown in mvc
- set font awesome icon into textbox
- MVC3 POST model binding not working for particular complex model
- check for value null on razor syntax
Related Questions in WINDOWS-PHONE-8
- Deployment failed because no Windows Phone was detected when using Windows Phone Emulator
- Ellipsis inside button content Windows Phone
- Binding.StringFormat doesn't adhere to CultureInfo.CurrentCulture
- Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?
- Application configuration files for Windows Universal app
- Cordova 'deviceready' event firing twice on wp8
- Input cursor windows phone phonegap
- How can I create a simple text file on a windows phone (8.1) that can be accessed trough USB cable?
- Windows Phone 8.1 : how to Launch an Installed app From My app
- Receiving shared content using windows phone 8.0
- How can we run camera as background view in windows phone 8?
- Windows Phone local toast notification Text wrapping and image is not showing
- OneDrive SDK & background task WP8.1
- Windows Phone 8.1 Emulator Xde.exe stops working when clicking on "tools"
- FileNotFound when renaming photo WP8
Related Questions in FORMS-AUTHENTICATION
- Keeping data up to date
- MVC 5 - authorisation blues with forms authentication
- asp.net get user information from xmlhttp requests
- Web Service Call for ADFS 2.0 Authentication
- Error deploying database to SQL Azure
- SQL Server connection error with login control in asp.net after moving the project on different machine
- CurrentPrincipal.Identity.IsAuthenticated is true even after signout when FormsAuth cookie domain set manually
- ASP.Net MVC 5 using webconfig credentials and Membership.ValidateUser method
- Entity Framework Enable-Migrations –EnableAutomaticMigrations?
- Access is denied connecting to SQL Azure database
- FormsAuthentication Checking Cookie
- Why is my MVC5 App prompting me for Windows Auth when I removed Windows Auth?
- Angular 2 navigate to a different page on login
- RedirectFromLoginPage or Response.Redirect do not work with IIS10
- mvc set and get id and name in FormsAuthentication
Related Questions in BACKGROUND-TRANSFER
- Passing POST parameters to background transfer request in windows phone 8
- How to add upload request property in background Transfer for windows phone 8?
- uploading files using background transfer request method in windows phone 8
- Windows Phone 8.1 - BackgroundTransferStatus for BackgroundUpload
- BackgroundTransfer inside BackgroundTask
- Upload files with multi-part data using background transfer service in windows phone 8
- Show notification when background upload complete
- Windows Phone Mango background transfer service policy
- Uploading files with Windows Phone BackgroundTransfer service to an MVC3 site in a RESTful manner
- Is it possible to run background transfer from background audio agent?
- WP Background Transfer Service has Memory Leak?
- Windows phone BackgroundTransferRequest with authentication
- Improve the performance of Windows Phone Background Transfer
- File upload from Windows Phone App - Test with Localhost Apache (XAMPP)
- iPhone iOS 7 - Background Download NSUrlSession
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should be able to use basic HTTP auth. I don't have much experience with BackgroundTransferRequest object, but it looks like it allows you to set request headers. So, for basic http auth you need to add a header "Authorization: Basic xxxxx" where xxxxx is base64 encoded userid:password. You obviously would have to configure IIS to use basic auth with your MVC app
Sending credentials in the URL is a very bad idea, because they are passed in clear text. Every piece of infrastructure between the phone and web server will see and log your credentials. There is a good chance these web logs will end up indexed by Google. Sending password in the header is protected by SSL, assuming you are using it.
Even sending the password in the header not ideal, since you'll have to store the credentials on the phone somewhere. If the phone is not trusted, you are asking for problems down the road.