Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 29th, 2011, 01: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.





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.