Allow configured auth mechanisms to be returned as authType after programatic authentication

Also a minor update to the notification API to identify notifications caused by programatic events.