Redirect window says "can be closed now". So why not let javascript do the job? ;-) (#334)

This commit is contained in:
J.Holzer 2019-04-14 21:50:15 +02:00 committed by Jonas Dellinger
parent c6de994f91
commit ee8af2510a

View File

@ -55,7 +55,7 @@ namespace SpotifyAPI.Web.Auth
} }
Task.Factory.StartNew(() => auth.TriggerAuth(token)); Task.Factory.StartNew(() => auth.TriggerAuth(token));
return this.StringResponseAsync("OK - This window can be closed now"); return this.StringResponseAsync("<html><script type=\"text/javascript\">window.close();</script>OK - This window can be closed now</html>");
} }
public ImplicitGrantAuthController(IHttpContext context) : base(context) public ImplicitGrantAuthController(IHttpContext context) : base(context)