Configuring IIS and Setting up Thinktecture v2 Identity Server

As the title indicate, this post is about installing IIS and Configuring ThinkTecture v2 up and running.

Run appwiz.cpl

Search and run app.wiz.cpl

Select IIS and required features

 

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.

HTTP Error 500.19

3Wait for features to be found and installed.

 

4

 

click close

IISNavigate to Localhost

IIS is up and running. Next is Downloading ThinkTecture V2 configuring IIS  to serve ThinkTecture V2

ThinkTecture V2 Release

Visit https://github.com/IdentityServer/IdentityServer2/releases and download ThinkTecture V2

Follow along this video and everything should be fine https://vimeo.com/51088126ThinkTecture V2 Initial Landing Page

https://vimeo.com/51666380

Importing Excel 2013 Data into SharePoint 2013

Importing Excel Data into SharePoint 2013

Open your Excel file

Exporting Excel 2013 Data to SharePoint 2013
Exporting Excel 2013 Data to SharePoint 2013

Click the Insert tab (1), select your data (2), click table (3) and click Ok (3)

 

Click anywhere inside the table (if the previous step as performed correctly a Design tab appears)

 

Exporting Excel 2013 Data to SharePoint 2013
Exporting Excel 2013 Data to SharePoint 2013

Click “Design” tab (1)

Click “Export” (2)

Click “Export table to SharePoint List” (3)

Enter Address URL Path of the site you wish to Import the Excel Data to (4)

This turns SharePoint as a source of data for the table to be exported (5) (The benefit of the Link is demonstrated after the export is completed)

Enter the preferred List name (6)

Enter Description (7)

Click Next

Click Finished

 

4

This means the data has been published to SharePoint List.

SharePoint Exported List
SharePoint Exported List

That’s it the Excel data is exported to SharePoinT

 

Benefit of “Create a read-only connection to the new SharePoint List”

Click “new item”

Add an Item to the List
Add an Item to the List

Fill out the Form and click Save

Refresh Excel Data
Refresh Excel Data

Right click on the table and click “Refresh” on the context menu

Updated Excel List
Updated Excel List

The latest data is visible in the Excel sheet.

ASP.NET Identity with Facebook (out of the box)

The following is a walk through of how to deal with authentication using Identity Providers mainly Facebook.

Open https://developers.facebook.com/

Add a New App
Add a New App

Click “Add a New App”

 

Add a New App
Add a New App

Click “WWW”

Create New Facebook App ID
Create New Facebook App ID

Click “Create New Facebook App ID”

Create New app ID/Details
Create New app ID/Details

Select Category and click “Create App ID”

Go to Visual studio 2013

New VS2013 Project
New VS2013 Project

Create new Project name it and select “ASP.NET Web application”

New VS2013 Project Selection
New VS2013 Project Selection

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

Website URL
Website URL

Paste the url in “Site URL” and “Mobile site URL” in this case localhost:61617 and click next

 

Application DashBoard
Application DashBoard

Refresh the page click Show button near App Secret

 

Authentication
Authentication

Enter your Facebook Password

Go to visual studio

Startup Authentication
Startup Authentication

Navigate in solution explorer to App_start/start.auth.cs

Facebook App ID and App Secret
Facebook App ID and App Secret

Scroll down Facebook boilerplate authentication code. Paste App Id and App Secret and uncomment the three lines

Rebuild the Project and run

Log In
Log In

Once it opens in the browser click Login

Facebook Login
Facebook Login

On the left of the page there should be a Facebook button click it

Application Authorization
Application Authorization

Click okay to authorize

Associate E-mail address with account
Associate E-mail address with account

Enter E-mail address to associate with that Facebook account on your application

Display E-mail after authentication
Display E-mail after authentication

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.

NuGet Manager
NuGet Manager
Facebook SDK
Facebook SDK

More info at http://www.nuget.org/packages/Facebook/7.0.5-beta

and https://developers.facebook.com/docs/graph-api

The guideline is do not ask for more data than your application really need, because once you lose trust of the users, your web site is dead.