I implemented authentication of openAuth forms in mvc in much the same way as on this page http://www.strathweb.com/2012/08/adding-openid-authentication-to-your-asp-net-mvc-4-application/
However, I cannot use System.Web.Security.FormsIdentity for OpenIdIdentity when I do not use the [OpenIdAuthorize] attribute for my actions.
[OpenIdAuthorize] public ActionResult Index() { return View(); }
If I add the [OpenIdAuthorize] attribute and then add a personality, it works fine. I have an action that should work for both anonymous users and subscribers. However, if the user is registered, I want to get OpenIdIdentity and use it.
The problem is that AuthorizeCore overrides are not called unless I put the attribute in the action.
source share