Use the ASP.NET Authentication Service with Windows Phone 7

Posted by on Comments (0)

If you want to use the ASP.NET Authentication Service with your Windows Phone 7 (this is quite similar if you want to use it with Silverlight), just create a standard Windows Phone project in Visual Studio 2010 :

Once this is done, add an empty web test project :

Create a new WCF service in this Web Application :

Name it AuthenticationService.

Remove the auto-generated Code-Behind file and Interface.

Edit the .svc to rely on the AuthenticationService (more info) provided by Microsoft :

Edit the Web.config or use the WAT (Web Site Administration Tool Security Tab) to enable the Authentication Service and to create some users. Here is how my Web.config file looks like :

 

Once this is made, you can reference this service in your WP7 application and start to use the authentication mechanism :

And the result is :

Or :

You can download the sample here

I created a user Spiderman with a password Spiderm@n

Sharepoint 2010 SilverXplorer V 0.1

Posted by on Comments (0)

Recently I've worked on a small Silverlight application that targets Sharepoint 2010 file operations (copy, move, delete, …).

Sharepoint 2010 has a lot of great enhancements compare to Sharepoint 2007 but still lacks of basic file operations facilities (e.g. if you want to copy a file from a doclib to another doclib, you must give the URL of the destination doclib).

This V 0.1 of Sharepoint 2010 SilverXplorer currently only offers files & folders browsing.

Here is how the application looks like inside of Sharepoint :

Here is how the loading progress looks:

To change the Sharepoint site, click the button and choose a new site URL:

To go inside a folder, just click it!

To go up, click the button.

 

You can also use it in an out of browser way (with elevated trust).

 

On the Silverlight side, the new Sharepoint 2010 Client Object Model has been used.

If you take a look at the code, you'll also note that I've used a Resource Dictionary & Merged Dictionaries for styles and states and that I'm playing a lot with states (I like them!).

Sharepoint queries were optimized by Mathieu Gretry who joined the project!

 

To download the V 0.1 of the XAP or to access the source code, just go to : http://spsilverxplorer.codeplex.com/