I have recently installed the Shiro plugin and began using it, however I'm confused about the created DbRealm class which is not being called anywhere. None of the log statements appear and no break points are ever hit when debugging. As a test I removed all logic from this class and ran the application. Authentication still succeeds without anything in this class. So my question is why is this class created and not being called, and if it's not being used where is the authentication logic taking place? Do I need to specify the realms somewhere? The file resides within grails-app/realms.
My current tech stack is:
Grails 2.0.4 (jdk 1.7.04)
Windows 7 64 bit
I Removed the DbRealm class and readded it to the grails-app/realms source directory. For some reason the first time I added this file as source STS would not let me specify a package name that it was clearly in, so I initially just had no package specified. When I re-added the file, I specified the package name and this time STS did not complain. Now break points are hit and logging occurs. My best guess is this was a weird STS glitch, although I still don't understand how it worked when I removed all the logic. Anyway this is functioning properly now, my advice is to always have a package name ;)