Use CustomAuthProvider when login with client

Hi.

My question is how to use custom authorization provider when entering with Spark client (or any other)? It seems that my provider works only when I entering the admin panel via web interface. When entering with Spark seems to be working DefaultAuthProvider, because there are no messages in the log, which I put into the method CustomAuthProvider.authenticate, and I can not login (becouse of using my own password encription).

Thanks.

P.S. Sorry for bad english

It seems when authenticating with the Spark, passwords comparation performs not in my authenticate method. Any ideas where it happening? I tryed to return plain password (without my own encryption) from getPassword method, and Spark successfully logged in.