0bj3ct
0bj3ct

Reputation: 1490

Apache Shiro authentication customization

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

Answers (1)

fspinnenhirn
fspinnenhirn

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

Related Questions