Home / Companies / SSOJet / Blog / Post Details
Content Deep Dive

Enterprise SSO in a Java EE App: OIDC Without a Vendor SDK

Blog post from SSOJet

Post Details
Company
Date Published
Author
Goverdhan Sisodia
Word Count
2,643
Company Posts That Month
32
Language
English
Hacker News Points
-
Post removed?
No
Summary

Jakarta EE 10 and later include built-in OpenID Connect support through `@OpenIdAuthenticationMechanismDefinition`, allowing applications to configure an identity provider, client details, redirect URI, scopes, and related options while the container manages discovery, authorization-code exchange, ID token validation, and principal establishment for existing declarative security. User information, identity tokens, and access tokens can be accessed through an injected `OpenIdContext`, while client secrets should be supplied through runtime expression-based configuration rather than embedded in source code or deployment artifacts. The guide emphasizes exact redirect URI matching, careful proxy and context-root configuration, session replication and provider logout behavior, and identity-layer routing for multi-tenant SSO. Java EE 8 and Jakarta EE 8 or 9 do not provide this OIDC mechanism, leaving upgrades, web-server authentication such as Apache `mod_auth_openidc`, or a custom authentication mechanism as the principal options, with custom implementations requiring substantial protocol and cryptographic security work. It also advises verifying third-party dependencies and notes that a previously documented Maven artifact was unavailable, illustrating the importance of confirming that referenced libraries are published and maintained.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Secrets Management 1 2,042 500 137 -11%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.