I'm trying to understand how Spring Security works in a three-tier architecture.
Assuming the system is composed of:
WEB
<--> APP
<--> DB
And that the users are defined in the DB
tier.
How would I implement it in the application?
From my understanding I should do the following:
- Create my own Authentication Provider in the
WEB
tier. - The Authentication Provider will call a service on the
APP
tier to actually validate the credentials against the DB. - After the user passes the Spring Security module on the
WEB
tier, there are no more authentications and everyWEB
-->APP
call is actually unauthenticated.
The last bullet makes no sense to me - so I assume I missed something in the documentation.
My question - is this the Spring way to implement security in a three-tier'd web app? Or is there a better way?