title: Disable anonymous user in Sitecore
body: <p>I'm using an 3rd party external authentication/Single-Sign-On server with Sitecore that returns tickets back to a web server. </p>
  
  <p>The integration documentation recommends that when you get the authorised response back from the server you create your own <code>FormsAuthenticationTicket</code>, then you can access user <code>UserData</code> entered in the ticket like this:</p>
  
  <pre><code>FormsAuthenticationTicket ticket = ((FormsIdentity)   HttpContext.Current.User.Identity).Ticket;
  
  if (ticket != null)
  {
    string UserData = ticket.UserData;
    ...
  }
  </code></pre>
  
  <p>The issue I have is that the User.Identity will always be the <code>extranet\Anonymous User</code>. </p>
  
  <p>Is there any way to stop the anonymous user from being used as the current user. Or will I have to create my own membership provider in order for this to work?</p>