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#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in ASP.NET-MVC-3
- Insert new user AspNetUser from another controller in .NET 7
- Error HRESULT E_FAIL has been returned from a call to a COM component in Asp.net MVC
- ASP.NET MVC 3/4 Razor - public action method not found - how to debug
- get data by linq but have Error when doit this
- ASP.NET issue facing exception issue
- How to Implement a View Count Feature for a Blog Website in Asp.net MVC Using a Database?
- Unable to install ASP.NET MVC 3 using chocolatey
- Display data from DB to ajaxToolkit LINE CHART (Ajax control Toolkit v20.1) Using ASP.NET Webform C# (Dissertation Question)
- Why ModelState Isvalid false when working on images
- How to create an ASP.NET MVC 3.2.7 page with 3 view models
- How to make correct test project
- MVC Increase max number of concurrent simultaneous request per user
- Error Number:2705,State:4,Class:16 Code first approach
- Integrating the SSO for MVC3 application with AzureADB2C account
- How to integrate Asp.Net MVC existing application to MAUI Framework
Related Questions in WINDOWS-PHONE-8
- How did windows application "phone link" open the webpage automaticly can IT also open the files on our computer
- Possible to create an app on Windows Phone (WP) using Visual Studio 2022 or later
- Development of old window phone Apps using flutter
- OpenID Connect in c# for Windows Phone app
- How to generate refresh and access token for Windows phone app
- Exception in Json response when Submitting to webapi from WP8
- Passing Class Object to WCF Service c# wp8
- Identify Store App Type
- Why connectivity plugin network handler not working when navigation happens
- How to scroll listbox automatically when Scrollviewer present above it has finished scrolling
- Pixel by Pixel color conversion using WriteableBitmap
- Read stream from absolute uri
- error unhandled exception during loading desiger for the first time in visual studio 2012
- windows phone emulator not displayed , showing error 0x80131500
- How to get font file from windows phone
Related Questions in FORMS-AUTHENTICATION
- Use Micosoft Owin authentication to login using MS Account belonging to an oranization as well as use local db credentials
- ASP.NET Forms Authentication user logged out after SSO
- Migration From Windows authentication with AD (Active Directory) to Form authentication using okta integration. Getting 302 on request
- ASP.NET MVC forms authentication error with Safari browser
- keep forms auth session between sites iis web.config
- System.Web.Security.FormsAuthentication.SetAuthCookie goes on error
- Forms authentication ASP.NET webforms
- .NET Framework 4.7 API v2 doesn't see call from Blazor server as authenticated
- ASP.NET Web Form Application: Trouble Implementing 'Remember Me' Feature - Need Guidance
- TrustedAuthenticationRequest
- Can we switch between Forms Authentication and Azure AD authentication dynamically?
- Login Post Request, unable to authenticate users with nodejs Oracledb
- .NET 4.8 Web Forms - IIS Express - Two Virtual Directories, One Should Use FormsAuth, Other WindowsAuth, but Prinicipal is Always WindowsIdentity
- FormsAuthentication.Decrypt and System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors in .NET 4.8 Web Forms + IIS
- Using Hidden Fields When Redirecting to Another Website
Related Questions in BACKGROUND-TRANSFER
- UWP BackgroundTransfer StartAsync but don't wait for task to complete
- How can I cancel DownloadOperation?
- UpoadOperationProgress is returning bytessent = bytestosend instantly
- UWP BackgroundTransfer (CreateDownload / GetCurrentDownloadsAsync) Exception
- BackgroundDownloader with background apps setting turned off
- UWP Background Transfer exception 0x80072EE4 after Windows Update 1703
- Resume large file downloads using Background downloader
- UWP C# BackgoundUploader not working
- DownloadOperation receive zero bytes sometimes
- UWP BackgroundDownloader with self signed SSL certificate
- [UWP]Background task terminated after ~10-20 minutes (download files)
- C# BackgroundTransferContentPart Put Multiple Files
- Windows.Networking.BackgroundTransfer.DownloadOperation is not working in Windows Phone 10 (but successfully works on Windows Phone 8.1)
- Windows Phone 8.1 - BackgroundTransfer Invalid content length
- BackgroundDownloader.CreateDownload method not working in windows phone 8.1
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 # Hahtags
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.