sim51 / logisima-play-cas

CAS authentification module (SSO)
http://www.bsimard.com
19 stars 8 forks source link

Solution for the issue #9 #10

Open vicpenap opened 13 years ago

vicpenap commented 13 years ago

I've implemented a solution for the issue #9.

Now it's possible to extend Security class as much as needed. I've changed the invoke method in Security.java, and instead of looking for the only class that extended Security, now it looks for a class annotated with @SecurityClass. If it finds none or more than one, an exception will be thrown.

If you want to add compatibility for previous versions, you could change the behaviour when no @SecurityClass annotation is found and search in that case for any Security child class, as you were doing.