Ejemplo n.º 1
0
 private async Task SendJsCallback(HttpContext context, LoginProfile profile)
 {
     //Render a page
     context.Response.ContentType = "text/html";
     await context.Response.WriteAsync(
         JsCallbackHelper.GetCallbackPage()
         .Replace("%PROFILE%", $"\"{profile.Serialized}\"")
         .Replace("%CALLBACK%", Callback)
         .Replace("%DESKTOP%", (Mode == LoginMode.Redirect).ToString().ToLowerInvariant())
         );
 }
Ejemplo n.º 2
0
 private void SendJsCallback(HttpContext context, LoginProfile profile)
 {
     //Render a page
     context.Response.ContentType = "text/html";
     context.Response.Write(JsCallbackHelper.GetCallbackPage().Replace("%PROFILE%", profile.ToJson()).Replace("%CALLBACK%", Callback));
 }