Test dialog authorization