javascript - Spring Security without Spring Tag Library (JSTL) -


we having typical web application uses spring security , jsps. use standard spring security tag library show/hide, allow/restrict parts of web pages based of user roles.

now going change jsp part , write complete javascript based client.

  1. is there way similar functionality provided tag library javascript.
  2. if not, things should worry in implementing our own mechanism in javascript.

thanks, ish

if question "does spring security have javascript equivalent jsp tags" answer "no". obvious difference javascript runs on client whereas jsp executed on server, can't rely on hiding sensitive information using javascript library insecure.

a javascript client fundamentally different , security implemented in api expose allow retrieve data server. consist of security contstraints applied urls , server-side methods, rather having display technology, in ways simpler test , reason jsp security, since decoupled actual display code.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -