예제 #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())
         );
 }
예제 #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));
 }