From hbraun at redhat.com Tue Apr 9 08:19:31 2013 Content-Type: multipart/mixed; boundary="===============5357130271899099212==" MIME-Version: 1.0 From: Heiko Braun To: jboss-as7-dev at lists.jboss.org Subject: Re: [jboss-as7-dev] dmr.js Date: Tue, 09 Apr 2013 14:19:27 +0200 Message-ID: <683385F9-40B4-4EE5-826D-B71944F0B099@redhat.com> In-Reply-To: 20130409110117.GC53310@slowbeard.local --===============5357130271899099212== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This problem basically breaks down into two pieces: - support for CORS [1]: i.e. connect from host A to an EAP instance on host= B - a top of CORS: properly support the current HTTP authentication mechanism The patch that Harald did submit, deals with CORS support in general, but l= eaves us with the authentication problem. Some browsers do not reveal this = problem (like FF), because they don't correctly implement the CORS spec and= allow for credentials to be submitted as part of the preflight requests. O= thers like recent Chrome browsers correctly implement it and thus do not wo= rk. In order to solve the authentication problem, we need to revisit the overal= l HTTP authentication for the management layer. But speaking to Darran I ca= n say that this is planned and I hope that we can positively influence the = discussion to make these use cases work. = Regards, Heiko [1] http://www.w3.org/TR/cors/ On Apr 9, 2013, at 1:01 PM, Max Rydahl Andersen wro= te: > This is cool - how does the authentication work/not work ? > = > Found this on github: > "It requires a patched AS7 instance if not running on the same host. > Some browsers require extra steps to get the authentication working, but = Firefox should work out of the box." > = > http://haraldpehl.blogspot.de/2013/03/independent-jboss-admin-console.htm= l explains it a bit but > what is the patch needed for AS7 and with all these quirks do you think w= e can make it portable/usable for writing a webapp that connects remotely ? > = > /max > = > On Tue, Apr 09, 2013 at 08:11:59AM +0200, Heiko Braun wrote: >> Here's a code sample: >> = >> = >> >> = >> = >> On Apr 8, 2013, at 1:20 PM, Heiko Braun wrote: >> = >>> = >>> = >>> If you want to use the DMR API form plain JS and need all the typing bu= ild in, the dmr.js might be your friend: >>> = >>> https://github.com/hal/dmr.js >>> = >>> = >>> Regards, Heiko >>> _______________________________________________ >>> jboss-as7-dev mailing list >>> jboss-as7-dev(a)lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev >> = > = >> _______________________________________________ >> jboss-as7-dev mailing list >> jboss-as7-dev(a)lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev > = --===============5357130271899099212==--