Thursday, January 16

External Authentication Services in Visual Studio 2013

Introduction: Visual Studio 2013 and ASP.NET 4.5.1 provides external authentication services for
Microsoft,Google,Facebook and Twitter.

The following steps show how to configure file to integrate the external authentication services.

Steps:

Open visual studio 2013 and create new project and select ASP.NET Application.
Select "Single Page Application" template from template.

Press F5 and it shows a login screen; no external authentication services are enabled.


In the solution explorer, open "app_start" folder and the open "startup.auth.cs" file. Locate the code for authentication. Remove "//" to uncomment and then add your key and secret for Facebook,Twitter and Microsoft account.





Compile the project. Press F5. You should be able to see the external services as the following screen.

No comments:

Post a Comment