java - Spring securiy configuration based on URL? -


i have 2 web applications webapp1 , webapp2.webapp1 has own spring security configuration , webapp2 has own spring security configuration. providing link in webapp1 access webapp2. on click of link in webapp1, receive url invoke page in webapp2 http://somehost:8080/some.jsp?param1=value1&param2=value2

now problem webapp1 users , webapp2 users different , reside in different ldap directory. when user1 sends request webapp1 webapp2 need check whether user1 valid user or not.

my question whenever url comes below:

http://somehost:8080/some.jsp?param1=value1&param2=value2 

then need validate against different ldap security configuration. because webapp2 has ldap security , user1 in different ldap. need 2 different security configurations based on url mentioned above. whenever url comes above mentioned spring default login form should popup , ask credentials has validate against different ldap security configuration , after validating send user http://somehost:8080/some.jsp?param1=value1&param2=value2 possible? or there way communicate these 2 webapps in secured way. mean valid users should invoke http://somehost:8080/some.jsp?param1=value1&param2=value2 ?

thanks!


Comments