def METHOD_NAME(self, redirect_uri):
    (code_verifier, code_challenge, code_challenge_method) = generate_pkce_codes()
    self.application.settings["code_verifier"] = code_verifier
    oauth = OAuth2Session(client_id=self._client_id, redirect_uri=redirect_uri)
    full_authorization_url = oauth.authorization_url(
        self._authorization_url,
        state="requested",
        prompt=AuthRequestValues.LOGIN_PROMPT.value,
        code_challenge=code_challenge,
        code_challenge_method=code_challenge_method,
    )[0]
    return full_authorization_url