Hi I have implemented my own LoginModulePlugin and registered it as a service with the name of LoginModulePlugin so that it gets called for authentication. I have overridden canHandle method which returns true only when the authentication is coming from my authentication handler and all this is working fine.
But there's a pingAndCheck method which periodically keeps on calling my login module plugin's doInit method. Why is this happening? Below is the stack trace of the call: DemoLoginModulePlugin.doInit(CallbackHandler, Session, Map) line: 70 PluggableDefaultLoginModule.doInit(CallbackHandler, Session, Map) line: 68 PluggableDefaultLoginModule(AbstractLoginModule).initialize(Subject, CallbackHandler, Map<String,?>, Map<String,?>) line: 160 PluggableDefaultLoginModule.initialize(Subject, CallbackHandler, Map<String,?>, Map<String,?>) line: 84 LocalAuthContext.login() line: 83 RepositoryImpl.login(Credentials, String) line: 1497 SlingServerRepository(AbstractSlingRepository).login(Credentials, String) line: 214 SlingServerRepository(AbstractSlingRepository).loginAdministrative(String) line: 180 SlingServerRepository(AbstractSlingRepository).pingAndCheck() line: 517 SlingServerRepository(AbstractSlingRepository).run() line: 934 Thread.run() line: 662 Regards
