do { Engine.BlogAbout(".NET","Silverlight"); } while ( alive );  

Mark Monster

Mark Monster  

Silverlight Networking - Getting credentials to work, a possible work-around?

safeA few days ago I blogged about the trouble of getting Credentials to work in Silverlight Networking. The troubles still exists sadly.  I’ve been thinking about creating a simple Silverlight application that makes use of the del.isio.us API. But sadly this API, as most of the online API’s do, makes use of Basic Auth over HTTP or HTTPS. I have thought about many different Silverlight applications that makes use of online API’s, but sadly I wasn’t able to create them because of the lacking of authentication possibilities. But I just got an idea, by thinking out-of-the-box. I might just get out of this very limiting box. Although it’s just an idea that’s not tried out in the wild.

The idea

Some time ago I watched a part of the "ASP.NET MVC Storefront" screencast which stated something about making use of the ASP.NET Ajax javascript libraries manually. This standalone library can be downloaded from here.

I know it is possible to call Javascript from within a Silverlight application, and also to call back to the Silverlight application from within Javascript. So why not making use of the Browser and Javascript capabilities for creating WebRequests. I’m not totally sure it’s possible to set the "Auth" header from Javascript, but I’ve got a good feeling about this. The only thing I still need is some time to work it out. More will follow…

Leave a Reply