incorrect login name shown on menu

9 views
Skip to first unread message

PITS HKE

unread,
Sep 21, 2022, 9:01:31 PM9/21/22
to Orbeon Forms
Dear All,

There are two problems after adding login / logout button to the form.

1. The login name shown as a weird string.
2. The Logout button doesn't really logout but switching to summary page.

We r using Keycloak for authentication.  Thank you and looking forward to any insights.

Regards,
Jonathan
Picture 1.png

Alessandro Vernet

unread,
Sep 22, 2022, 5:27:59 PM9/22/22
to orb...@googlegroups.com
Hi Jonathan,

For the login name, that "id" must be the username passed by Keycloak. There is maybe a way to set up Keycloak to pass the actual username of the user? As for logout, it invalidates the session at the Java-level (`request.sessionInvalidate()`). Maybe another technique should be used to log out with Keycloak?

-Alex

--
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/bd0d20c7-4ee0-48f8-90ea-891e0c12bed6n%40googlegroups.com.

Alessandro Vernet

unread,
Oct 3, 2022, 12:22:15 PM10/3/22
to orb...@googlegroups.com
Hi Jonathan,

Have you managed to set up Keycloak so it would pass a "real" username to Orbeon Forms, instead of some internal id?

-Alex

PITS HKE

unread,
Oct 5, 2022, 10:59:58 AM10/5/22
to orb...@googlegroups.com
Hi Alex,

Thank you so much for your concern.  We manage to get the Keycloak user info via separate Keycloak API and integrate with http service in Orbeon Form.  Problem resolved.  Thank you.

Regards,
Jonathan

Alessandro Vernet

unread,
Oct 5, 2022, 11:46:26 AM10/5/22
to orb...@googlegroups.com
Perfect Jonathan, and thank you for the update. I personally don't have any practical experience with Keycloak, but I think it makes a lot of sense in conjunction with Orbeon Forms, and 'm glad to read that it is working for you guys.

-Alex

Reply all
Reply to author
Forward
0 new messages