Waffle / waffle

Enable drop-in Windows Single Sign On for popular Java web servers.
https://waffle.github.io/waffle
MIT License
473 stars 186 forks source link

SecurityManager and permissions in waffle-jaas example #364

Open abysas opened 8 years ago

abysas commented 8 years ago

The example requires:

But:

  1. no explanation is given why Security Manager is required and what consequences could be without it. Maybe I'm missing something?
  2. Jaas.policy in demo war does not include permissions required when those jars are packaged in web application's lib directory. I tried to dissect those permissions and stopped after several hours of such futile investigation: there were simply too much permission entries to be added. Simple placing those jars into ${catalina.base}/lib folder were much easier though it doesn't easily aligns with development environment supported by IDE.

Would you please update the policy file with required entries when jars are placed in application's lib folder? Thank you!

dblock commented 8 years ago

SecurityManager is a more broad question, I think https://blog.frankel.ch/java-security-manager/ is a decent blog post about it. It effectively enables these .policy things. I'd appreciate some documentation updates wrt SM.

Can you please make these changes and PR them?