Events:Authentication and PreAuthentication

+1 vote
asked Apr 25, 2018 by dmitry.petrishin (400 points)

Hi everyone.

What's difference between these two events, and what're the suggestions to use of each?

Where I need to implement my custom logic of authentication with going to another internal service?

Applies to: Rebex SFTP

1 Answer

0 votes
answered Apr 26, 2018 by Lukas Pokorny (124,570 points)
selected Apr 28, 2018 by dmitry.petrishin
Best answer

The PreAuthentication event is raised when authentication is about to start for a specific user account, but before any credentials have been transmitted. Its main purpose is to make it possible to specify which authentication methods to allow for the particular user attempting authentication. For other purposes, use Authentication event.

For additional information, check out information on Advanced authentication providers.

commented Apr 28, 2018 by dmitry.petrishin (400 points)
Thanks for answer!