def authorize_view(self):
args = request.args.to_dict()<EOL>args['<STR_LIT>'] = request.args.getlist('<STR_LIT>')<EOL>return_url = args.pop('<STR_LIT>', None)<EOL>if return_url is None:<EOL><INDENT>return_url = request.referrer or '<STR_LIT:/>'<EOL><DEDENT>flow = self._make_flow(return_url=return_url, **args)<EOL>auth_url = flow.step1_get_authorize_url()<EOL>return redirect(auth_url)<EOL>
Flask view that starts the authorization flow.

        Starts flow by redirecting the user to the OAuth2 provider.