SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to build an Autohosted Sharepoint app based on ASP.NET MVC, following this tutorial:

I'm stuck on "We want use the Token Helper too, so let’s copy the TokenHelper.cs file to our ASP.NET MVC project." step, because it's not in solution.

Is TokenHelper still used or does Sharepoint provide some other methods for authentication? Or maybe tutorial is wrong in some regard?

Also I can't seem to find Microsoft.Identity.Extentions dll file. This doesn't contain it.

share|improve this question
TokenHelper is a new concept in the App Model and is still used. Did you start with the App for SharePoint template? – Brian P May 22 '13 at 13:08
Yeah. Tried a second time, still the same. – sebz May 23 '13 at 7:38
up vote 2 down vote accepted

Ok so I found Microsoft.Identity.Extentions here: That's needed for which creates TokenHelper.cs file.

I still don't know why it didn't appear automatically when creating new project for sharepoint but this download solves my problem.

share|improve this answer
The NuGet package is probably buggy or missing it. Doesn't surprise me, this package management stuff is all a bit new for Microsoft. – James Love May 23 '13 at 8:05

Are you having the same bug I found, creating the project in a solution folder?

Templated projects for autohosted or provider apps don't have TokenHelper and aren't set up correctly

share|improve this answer
Yeah, try getting it from here: or through download link I posted before – sebz May 23 '13 at 13:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.