Re: OT: Entra ID Realm for Tomcat

Christopher Schultz <[email protected]> Wed, 10 Jun 2026 11:46:49 -0400
Newsgroups gmane.comp.jakarta.tomcat.user
Message-ID <[email protected]>
Zoran,

On 6/8/26 8:23 PM, Zoran Avtarovski wrote:
> Hi Guys,
> 
> We now have the need to support entra ID integration in our tomcat 
> hosted apps. We currently use tomcats container-managed-security (JAAS) 
> and we want to keep this active as well as integrating with Entra ID. 
> The easiest approach to us was to find/create a realm to bridge to 
> tomcat's container-managed-security to Entra ID. We haven't been able to 
> find anything as yet and were wondering if anyone had any advice on past 
> experiences or which approach to take.
> 
> Any assistance would be appreciated.

Do you have a preference for SAML or OIDC? Do you need to support 
service-provider-initiated login, or only identity-provider-initiated login?

Both of these are "easy" to implement for some definition of "easy". I 
rolled my own single-legged SAML for my application and, looking back on 
it, it was probably a mistake (mostly because it was a rathole).

I think there are some libraries out there that you might be able to 
integrate into your application to take care of this for you, but they 
probably won't integrate with Tomcat's realms.

-chris