I've created a custom auth scheme and finally got it deployed. It took a while. I finally got to the point where i created a log() method that logs to /tmp/{classname}.log. This is not a long term solution, but it's helping me during the discovery phase. I instantiated the FileWriter in the init method and then logged to it in the query() method but I was getting errors like : [30651/4042537872][Wed Jul 06 2011 07:28:18][SmAuthServer.cpp:233][ERROR] Failed to query authentication scheme 'AlwaysAcceptCredentialsFormAuthScheme' Ultimately, I changed the log() method to do lazy initialization of the file writer and BAM! i started getting log messages. The funny thing is, i NEVER get the init() log message. I don't think it's being called. Their documentation says it will be called once for each instance of the custom authentication scheme but i'm never seeing it called, so i'm very confused.


public SmAuthStatus init(String parameter, String secret) {
  log("init() called on " +getClass().getName() + " with "
    + secret+ " and " + parameter);
  return SmAuthStatus.SMAUTH_SUCCESS;
}
I'll see if I can figure it out. Update 2011-07-08 - init() is in fact called. I noticed in my logs that it is being called now. I do not know what changed as I've had many changes. I simply was not relying on init() being called so i never noticed when it started.