def on_authentication_success(user, kind, credentials, authenticating_authority)
      @config.logger.info("User \"#{user.username}\" was successfully authenticated " <<
                          "by #{authenticating_authority.class}.")
      poll(:on_authentication_success, user, kind, credentials, authenticating_authority)
    end
def on_authentication_success(user, kind, credentials, authenticating_authority)
      @config.logger.info("User \"#{user.username}\" was successfully authenticated " <<
                          "by #{authenticating_authority.class}.")
      poll(:on_authentication_success, user, kind, credentials, authenticating_authority)
    end
A callback which is invoked when {#valid_credentials?}
 is about to return a new user.  It has no control over whether
 authentication will proceed &mdash; it's just a notification.

 The composite behavior is to invoke the callback on all the
 authorities which implement it.

 @param [Aker::User] user the user which has been authenticated.
 @param [Symbol] kind the kind of credentials (the same value
   originally passed to {#valid_credentials?}).
 @param [Array] credentials the actual credentials which were
   determined to be valid (the same value originally passed to
   {#valid_credentials?}).
 @param [Object] authenticating_authority the (first) authority
   which determined that the credentials were valid.

 @return [void]