As the title indicate, this post is about installing IIS and Configuring ThinkTecture v2 up and running.
Search and run app.wiz.cpl
click “Turn windows features on or off” (1)
Tick “IIS Management Console” (2)
Tick ASP.NET 4.5 (3)
It is of utmost importance that ASP.NET 4.5 is ticked else when one would attempt to navigate to thinktecture v2 the following HTTP Error 500.19 will pop up.
Wait for features to be found and installed.
click close
Navigate to Localhost
IIS is up and running. Next is Downloading ThinkTecture V2 configuring IIS to serve ThinkTecture V2
Create new Project name it and select “ASP.NET Web application”
Set Authentication to “Individual User Accounts” and Click Ok
Build and run your project and copy the local URL go to Facebook Development in your browser where you left off
Paste the url in “Site URL” and “Mobile site URL” in this case localhost:61617 and click next
Refresh the page click Show button near App Secret
Enter your Facebook Password
Go to visual studio
Navigate in solution explorer to App_start/start.auth.cs
Scroll down Facebook boilerplate authentication code. Paste App Id and App Secret and uncomment the three lines
Rebuild the Project and run
Once it opens in the browser click Login
On the left of the page there should be a Facebook button click it
Click okay to authorize
Enter E-mail address to associate with that Facebook account on your application
The e-mail will show every time the user is logged in.
That is how to authenticate a user using Facebook as an Identity Provider. Out of the box.
What’s else can we do with Facebook?
There a lot of things one can do with Facebook by using Facebook SDK the user can authorize your Web Site to access several Scopes. At the least one could skip the last two steps by requesting access to the e-mail and use that programmatically without the user having to type it.
The following is how to incorporate Facebook SDK in your project.