This page last changed on Jun 16, 2013 by juha.

Hello,

I enabled the authentication tomcat at the controller by specifying a user with the role "OpenRemote".

By connecting with my android phone, it works perfectly whether 3g or wifi.

Trying to connect with the web application "Webconsole" I fill my user and password, but the application still returns to the selection panel.

I enabled the console to see the network stream and I see a 403 http in json flow.

Therefore impossible to use webconsole with authentication.

because jsonp don't use username and password :


    private void doJsonpRequest(final String url,
            final JSONPControllerCallback callback, final Integer timeout)
    {
        final JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
        if (timeout != null)
        {
            jsonp.setTimeout(timeout);
        }
        jsonp.requestObject(url, callback);
    }

Sans titre.jpg (image/jpeg)

Hi,

There are some missing patches in Controller 2.0.2 that the Web Console requires for authentication support (uses CORS so a HTML5 compatible browser is required), I have created a branch for Controller 2.0.2 with the required patches applied: -

svn+ssh://kurrazyman@svn.code.sf.net/p/openremote/code/workspace/richturner/Controller_2_0_2_CORS

Rich

Posted by kurrazyman at Jun 02, 2013 20:52
Document generated by Confluence on Jun 05, 2016 09:41