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

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

Commit 12836194 authored by Stephane Sobucki's avatar Stephane Sobucki Committed by Vincent A

[OAuth2Mixin] Failed access_token request is not a wrongpass

Requests for retrieving access_token do not contain any PSU credentials.

Additionaly, this request can be done only after the user has
successfuly logged in.

So it should not be treated as a wrongpass.
parent d8b21645
......@@ -1286,8 +1286,7 @@ def request_access_token(self, auth_uri):
try:
auth_response = self.do_token_request(data).json()
except ClientError:
self.logger.debug('Failed to request access token')
raise BrowserIncorrectPassword()
raise AssertionError('PSU has successfully logged in, but the request to get an access token failed.')
self.update_token(auth_response)
......
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