%html %head %body :javascript window.opener.Discourse.authenticationComplete(#{@data.to_json}); window.close();