Add authorization capture support to library