Re: Registration / Authentication system for Forms

Posted by SK on
URL: https://discuss.orbeon.com/Registration-Authentication-system-for-Forms-tp4661779p4665024.html

Hi Alex,

If it helps, here is the access log.

0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:20 -0800] "GET /orbeon HTTP/1.1" 302 -
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:21 -0800] "GET /orbeon/ HTTP/1.1" 302 -
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/ HTTP/1.1" 200 4718
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/config/theme/examples.css HTTP/1.1" 200 136
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/fr/style/form-runner-bootstrap-override.css HTTP/1.1" 200 20737
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/fr/style/bootstrap/css/bootstrap.css HTTP/1.1" 200 133974
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/home.css HTTP/1.1" 200 1477
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/ops/jquery/jquery-3.3.1.min.js HTTP/1.1" 200 87020
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/apps/fr/style/orbeon-navbar-logo.png HTTP/1.1" 200 2278
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/fr-home-small.jpg HTTP/1.1" 200 25548
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/form-builder-small.jpg HTTP/1.1" 200 57060
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/form-dmv14-small.jpg HTTP/1.1" 200 23120
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/form-w9-small.jpg HTTP/1.1" 200 24143
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/form-bookshelf-small.jpg HTTP/1.1" 200 30046
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/form-contact-small.jpg HTTP/1.1" 200 22838
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:22 -0800] "GET /orbeon/home/images/form-controls-small.jpg HTTP/1.1" 200 57003
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:24 -0800] "GET /orbeon/fr/orbeon/builder/new HTTP/1.1" 302 -
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:36 -0800] "GET /orbeon/fr/orbeon/builder/new?state=d23dd397-0321-4677-a77e-446e85a588bc&session_state=66cfb1d0-08b3-4b4d-b429-ee46154b1a19&code=aa9fada0-3967-4783-a24a-09036d8b64ba.66cfb1d0-08b3-4b4d-b429-ee46154b1a19.6cef742c-be89-481d-a41f-9b182a1c2b25 HTTP/1.1" 302 -
0:0:0:0:0:0:0:1 - d4c50be0-ac68-4022-910d-3167484ad9e4 [04/Feb/2020:11:31:36 -0800] "GET /orbeon/fr/orbeon/builder/new HTTP/1.1" 403 688
0:0:0:0:0:0:0:1 - - [04/Feb/2020:11:31:36 -0800] "GET /favicon.ico HTTP/1.1" 200 21630


Thanks
SK


On Tuesday, 4 February 2020 11:35:42 UTC-8, SK wrote:
Yes, I made some progress, thanks for your help!!

I have those logging changes in place and was trying to see if I can get some details. I can see below item in log;

2020-02-04 11:31:22,115 DEBUG auth  - using `Container` method
2020-02-04 11:31:22,115 DEBUG auth  - usernameOpt: `None`, roles: `Some(staff)`
 
Please find attached the log and screenshot.




SK


On Tuesday, 4 February 2020 11:20:38 UTC-8, Alessandro Vernet wrote:
Hi SK,

I've also seen your question on Stack Overflow, and am glad you managed to
do that setup. Since you're getting the Keycloak login page when accessing
Orbeon Forms, it looks to me like you're 95% there :).

Could you set your logging as described in the Development configuration
section of the XForms Logging page (see link below), stop your server,
remove the `orbeon.log`, restart the server, reproduce the issue and attach
the `orbeon.log` you get, along with a screenshot of the webpage with the
403?

<a href="https://doc.orbeon.com/configuration/advanced/xforms-logging.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fconfiguration%2Fadvanced%2Fxforms-logging.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEK0Z2SHcCE_8wt7zB5OqJ3fET_PQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fconfiguration%2Fadvanced%2Fxforms-logging.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEK0Z2SHcCE_8wt7zB5OqJ3fET_PQ&#39;;return true;">https://doc.orbeon.com/configuration/advanced/xforms-logging.html

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/18aeea15-27e5-44d2-8d6f-df118b26b9fc%40googlegroups.com.