The new woob repository is here: This gitlab will be removed soon.

Commit cc0fc417 authored by Etienne Lachere's avatar Etienne Lachere Committed by Romain Bignon

[oAuth2] new BrowserRedirect exception

meant to work with oAuth2 compliant modules. The module constructs the
authorization_uri with every params it needs (at least client_id and redirect_uri),
then raise BrowserRedirect with this uri.
parent 3c6e3ecb
......@@ -17,7 +17,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <>.
class BrowserIncorrectPassword(Exception):
......@@ -34,7 +33,11 @@ class BrowserUnavailable(Exception):
class BrowserQuestion(BrowserIncorrectPassword):
class BrowserInteraction(Exception):
class BrowserQuestion(BrowserInteraction):
When raised by a browser,
......@@ -42,6 +45,11 @@ def __init__(self, *fields):
self.fields = fields
class BrowserRedirect(BrowserInteraction):
def __init__(self, url):
self.url = url
class CaptchaQuestion(Exception):
"""Site requires solving a CAPTCHA (base class)"""
# could be improved to pass the name of the backendconfig key
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment