def get_authorization_url(self, requested_scopes=None,<EOL>redirect_uri=OAUTH_REDIRECT_URL, **kwargs):
<EOL>if redirect_uri == OAUTH_REDIRECT_URL:<EOL><INDENT>warnings.warn('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>DeprecationWarning)<EOL><DEDENT>client_id, client_secret = self.auth<EOL>if requested_scopes:<EOL><INDENT>scopes = requested_scopes<EOL><DEDENT>elif self.scopes is not None:<EOL><INDENT>scopes = self.scopes<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self.session = oauth = OAuth2Session(client_id=client_id,<EOL>redirect_uri=redirect_uri,<EOL>scope=scopes)<EOL>self.session.proxies = self.proxy<EOL>if self.request_retries:<EOL><INDENT>retry = Retry(total=self.request_retries, read=self.request_retries,<EOL>connect=self.request_retries,<EOL>backoff_factor=RETRIES_BACKOFF_FACTOR,<EOL>status_forcelist=RETRIES_STATUS_LIST)<EOL>adapter = HTTPAdapter(max_retries=retry)<EOL>self.session.mount('<STR_LIT>', adapter)<EOL>self.session.mount('<STR_LIT>', adapter)<EOL><DEDENT>auth_url, state = oauth.authorization_url(<EOL>url=self._oauth2_authorize_url, access_type='<STR_LIT>')<EOL>return auth_url<EOL>
Initializes the oauth authorization flow, getting the
        authorization url that the user must approve.

        :param list[str] requested_scopes: list of scopes to request access for
        :param str redirect_uri: redirect url configured in registered app
        :param kwargs: allow to pass unused params in conjunction with Connection
        :return: authorization url
        :rtype: str