public override Task Authenticated(StackExchangeAuthenticatedContext context)
 {
     context.Identity.AddClaim(new Claim("ExternalAccessToken", context.AccessToken));
     return(Task.FromResult <object>(null));
 }
 public Task ReturnEndpoint(StackExchangeAuthenticatedContext context)
 {
     return(Task.FromResult <object>(null));
 }
 public void ApplyRedirect(StackExchangeAuthenticatedContext context)
 {
     context.Response.Redirect(context.Properties.RedirectUri);
 }