Assuming that dialog is done the normal way you want to listen for (and respond to) the account-authorization-requested signal. See the documentation for more specific information. -Etan