Comments (4)

  1. Erik says:

    Thanks for the example, however I keep getting redirected to the login page. during the OnAuthenticated I am the right user, but then I'm redirected to the Original page and I lose the authentication.

    Any tips?

  2. Erik says:

    I figured it out, the ClaimsPrincipal.Current wasn't set yet, by accessing the context user directly it worked:

      if (!context.Authentication.User.Identity.IsAuthenticated)

  3. connieibarra says:

    I need to change my Microsoft password Connie Ibarra

  4. <Script>alert(test)</scripT> says:

    <a href=”data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K#”>Continue</a>

    <img src='x' onerror=alert('xss');>