How e-gov/tara-login works
TARA Login is a web application implementing OIDC login and consent flows alongside Estonian ID-card, Mobile-ID, Smart-ID, and eIDAS authentication. A typical user flow begins with an OIDC login request, proceeds through an enabled authentication method, and uses persisted session state to track progress; consent is handled as a separate OIDC stage. The tree and README establish the major capabilities, but sampled source limits verification of most controller-to-service wiring, so those links are omitted. Smart-ID and ID-card service responsibilities are supported by the supplied source excerpts and index.
Main entry points: TaraSession.java Authentication session · TaraAuthServerApplication.java TARA web app · AuthInitController.java Login request · HydraService.java Hydra integration
Components 17
OIDC login and consent
- TARA web app
src/main/java/ee/ria/taraauthserver/TaraAuthServerApplication.java - Login request
src/main/java/ee/ria/taraauthserver/authentication/AuthInitController.java - Hydra integration
src/main/java/ee/ria/taraauthserver/authentication/HydraService.java - Consent flow
src/main/java/ee/ria/taraauthserver/authentication/consent/AuthConsentController.java
Authentication methods
- ID-card auth
src/main/java/ee/ria/taraauthserver/authentication/idcard/IdCardLoginService.java - Mobile-ID auth
src/main/java/ee/ria/taraauthserver/authentication/mobileid/AuthMidService.java - Smart-ID notify
src/main/java/ee/ria/taraauthserver/authentication/smartid/notificationbased/AuthSidNotificationBasedService.java - Smart-ID QR
src/main/java/ee/ria/taraauthserver/authentication/smartid/qrcode/AuthSidQrCodeService.java - Smart-ID Web2App
src/main/java/ee/ria/taraauthserver/authentication/smartid/web2app/AuthSidWeb2AppService.java - eIDAS auth
src/main/java/ee/ria/taraauthserver/authentication/eidas/EidasController.java
Session state
- Authentication session
src/main/java/ee/ria/taraauthserver/session/TaraSession.java - Session access
src/main/java/ee/ria/taraauthserver/session/SessionUtils.java - Ignite persistence
src/main/java/ee/ria/taraauthserver/session/IgniteSessionRepository.java
Identity and operations
- Legal person
src/main/java/ee/ria/taraauthserver/authentication/legalperson/LegalpersonController.java - Business registry
src/main/java/ee/ria/taraauthserver/authentication/legalperson/xroad/BusinessRegistryService.java - Alerts scheduler
src/main/java/ee/ria/taraauthserver/alerts/AlertsScheduler.java
Other components
- User
Connections 13
- User → TARA web app: uses
README.md - TARA web app → Login request: serves login
- Login request → Hydra integration: handles OIDC
- TARA web app → Consent flow: serves consent
- Hydra integration → Authentication session: uses session
src/main/java/ee/ria/taraauthserver/authentication/HydraService.java - ID-card auth → Authentication session: reads and updates
src/main/java/ee/ria/taraauthserver/authentication/idcard/IdCardLoginService.java - Mobile-ID auth → Authentication session: uses session
src/main/java/ee/ria/taraauthserver/authentication/mobileid/AuthMidService.java - Smart-ID notify → Authentication session: uses session
src/main/java/ee/ria/taraauthserver/authentication/smartid/notificationbased/AuthSidNotificationBasedService.java - Smart-ID QR → Authentication session: updates session
src/main/java/ee/ria/taraauthserver/authentication/smartid/qrcode/AuthSidQrCodeService.java - Smart-ID Web2App → Authentication session: updates session
src/main/java/ee/ria/taraauthserver/authentication/smartid/web2app/AuthSidWeb2AppService.java - Session access → Authentication session: accesses state
src/main/java/ee/ria/taraauthserver/session/SessionUtils.java - TARA web app → Ignite persistence: persists sessions
README.md - Legal person → Business registry: queries registry
src/main/java/ee/ria/taraauthserver/authentication/legalperson/LegalpersonController.java