Question about upgrading 5.6.1 to 6.3 Authenticator/LoginModule combo
Hi, we're in the process of upgrading a project to 6.3 from 5.6.1
Most of it is already working, but we're hitting a wall with the current implementation of the custom AuthenticationHandler and the LoginModule.
Currently, the AuthenticationHandler seems to be doing it's job correctly, as in it communicate with the external services, gets the user info back, and provide an AuthenticationInfo back.
That said, right after that, its authenticationFailed feedback handle gets called. Which I'm assuming is due to the OOTB LoginModules.
What's the path of least resistance in going forward, we don't want to rewrite the whole AuthenticationHandler, the user info already means it was authenticated successfully to the SSO server.
What we need now is simply getting a LoginModule that would approve that user, which is where I'm mostly scratching my head, as most samples seems to assume authentication hasn't been made yet or something, and will be done at the LoginModule level instead (unless I'm mistaken here)
I kind of was able to do some JAAS LoginModule (not using the External one) but using a
<Jaas-ModuleClass>myclass.ExternalLoginModule</Jaas-ModuleClass>
Adding the JAAS config in Felix, and somehow it almost "work" but the thing is, the LoginModule is literally being called every 2 seconds like crazy, so obviously not the right way.
Is there a way of doing this with our current AuthenticationHandler, and a LoginModule that doesn't requires an ExternalProvider?
Any insights would be greatly appreciated