Skip to content

Instantly share code, notes, and snippets.

@xdumaine
Created January 29, 2014 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdumaine/8691260 to your computer and use it in GitHub Desktop.
Save xdumaine/8691260 to your computer and use it in GitHub Desktop.
Adapted from the DotNetOpenAuth > Samples > OpenIdProviderMVC example
internal static OpenIdProvider OpenIdProvider = new OpenIdProvider();
public ActionResult Id()
{
if (Request.AcceptTypes != null && Request.AcceptTypes.Contains("application/xrds+xml"))
{
ViewData["OPIdentifier"] = true;
}
return View();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment