Orbeon Tomcat (container) authentication with Keycloak and user attributes

27 views
Skip to first unread message

ti...@nisula.org

unread,
Sep 14, 2020, 5:46:10 AM9/14/20
to Orbeon Forms
User authentication (container based) with Keycloak working fine. Now thinking is it possible to pass Keycloak user attributes to orbeon? I would like to get customer number from Keycloak to orbeon, customer numbers are saved to to user attributes.

Does anyone knows is it doable?

 

Alessandro Vernet

unread,
Sep 14, 2020, 7:18:53 PM9/14/20
to orb...@googlegroups.com
Hi Timo,

Would you be able to have Keycloak set an HTTP header with that customer
number? If so, you can then retrieve it on the Orbeon Forms side using the
`xxf:get-request-header()` function.

https://doc.orbeon.com/xforms/xpath/extension-functions/extension-http#xxf-get-request-header

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

Timo Nisula

unread,
Sep 16, 2020, 4:24:01 AM9/16/20
to orb...@googlegroups.com
Hi alex,

Thanks, need check can I use this one.

-Timo

--
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 orbeon+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1600125530515-0.post%40n4.nabble.com.

Alessandro Vernet

unread,
Sep 16, 2020, 7:50:42 PM9/16/20
to orb...@googlegroups.com
Hi Timo,

Got it, and you will let me know if Keycloak is able to pass additional
information through header, or if we need to find some other way to handle
this use case.
Reply all
Reply to author
Forward
0 new messages