authorization uri generation and related tasks