javascript - Restrict user to bookmark URL for application redirected from another application menu -
current scenario:
application (java web app) has menu item in jsp links application b (java web app). user base both applications same. hence login required application a. application b, user validated per role.
on click of menu item, loads home page of application b on separate tab on browser.
the url of application b hard coded link used menu item in application "http://app-b.com/login?user=[user]&role=[role] [user] , [role] dynamically loaded logged in user on application a.
since application b url contains user name , role loads home page according user & role. user validation according role done during login service call.
problem statement:
query string in application b url should not readable. now, looks "http://app-b.com/login?user=abc&role=read".
users able change role , user in url, load application b directly on browser without entering application a. resolve, used base64 encoding query string , decoded same in login service. after encode also, looks same every time. user can book mark url.
due point#2, user can able load url different machine.
unable ensure active session url redirection till expiry of session application b.
any pointer resolve this, appreciated.
Comments
Post a Comment