Reputation: 1490
How can I customize authentication logic in Apache Shiro? In Spring Security I write my custom logic inside the "authenticate()" method in AuthenticationManager:
public Authentication authenticate(Authentication auth) { ... }
Is there a way to do the same in Apache Shiro?
Upvotes: 2
Views: 573
Reputation: 1889
Here are overviews of Shiro's authentication sequence and customizable realm authentication.
Depending on what you want to do, your own implementation of a CredentialsMatcher
could be the hook you're looking for? A detailed answer on which parts you need to customize really depends on your actual authentication scenario.
Upvotes: 1