Tomcat and UserPrincipal
Thursday, 20 September 2018 · 2 messages · last reply 25 Sep 2018
ML
Marco Lettere20 Sep 2018 15:58 #
Hi all,
when deploying a BaseX RestXQ module as a Tomcat webapp in a container that uses embedded realm based authentication is there any way to retrieve the login name after being redirected to the protected page?
I remember back in J2EE times there was a dedicated method
getUserPrincipal. Is there any equivalent using "request:"?
Thanks as usual for any kind support!
Marco.
CG
Christian Grün25 Sep 2018 09:43 #
Sorry from my side; I don’t have much experience with Tomcat. Maybe someone else has?
Quoted text · Marco Lettere · 15 lines
On Thu, Sep 20, 2018 at 3:59 PM Marco Lettere <m.lettere at gmail.com> wrote: > > Hi all, > > when deploying a BaseX RestXQ module as a Tomcat webapp in a container > that uses embedded realm based authentication is there any way to > retrieve the login name after being redirected to the protected page? > > I remember back in J2EE times there was a dedicated method > getUserPrincipal. Is there any equivalent using "request:"? > > Thanks as usual for any kind support! > > Marco. >
Written for BaseX 9.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery