Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Windows Phone 7 Application Development: Building Applications and Games Using Vi
This is the forum to discuss the Wrox book Professional Windows Phone 7 Application Development: Building Applications and Games Using Visual Studio, Silverlight, and XNA by Nick Randolph, Christopher Fairbairn ; ISBN: 978-0-470-89166-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Windows Phone 7 Application Development: Building Applications and Games Using Vi section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 29th, 2011, 12:09 PM
Registered User
 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 18 and Basic Authentication

Chapter 18 covers how to access a service using Basic Authentication, but it leaves something very important out. It mentions setting up the client to use TransportCredentialOnly as the security mode and then in a side bar says that you should consider using this over SSL. Unfortunately TransportCredentialOnly does not allow SSL and you will receive an error if you try to use this with a https url. Instead you have to use Transport, in which case the credentials for Basic authentication will not be added to the header. You should refer to http://msdn.microsoft.com/en-us/libr...uritymode.aspx for an explaination of how this works. Outside of Silverlight you can normally access the Transport property of the basicHttpBinding and set the ClientCredentialType to basic, but this property is not available to Silverlight and therefore is not available on the Windows Phone.

To get around this, I refer you to Chapter 14 and the section on custom headers. The only way I've found to allow Basic authenticaiton over SSL with a basicHttpBinding in Silverlight has been to add the Basic authentication header to the request myself.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic authentication KamalRaturi ASP.NET 2.0 Professional 2 July 17th, 2007 07:04 AM
IIS Basic authentication problem -401 Unauthorized bruceaflash BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 June 14th, 2005 08:28 AM
How to avoid a Basic Authentication popup via link snorre70 HTML Code Clinic 1 July 30th, 2004 06:34 AM
chapter 20 basic authentication egivler BOOK: Beginning ASP.NET 1.0 3 June 29th, 2004 09:16 PM



All times are GMT -4. The time now is 01:20 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.