We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the past the way to obtain the CSRF token was:
def _authenticate(self, user_id, password, redirect_uri, scope): session = requests.session() session.get('https://' + self._host + '/signout', timeout=self._timeout) params = { 'client_id': self._key, 'response_type': 'code', 'scope': scope, 'redirect_uri': redirect_uri } response = session.get(self._login_or_register_endpoint, params=params, headers={'Host': self._host}, timeout=self._timeout) response.raise_for_status() soup = BeautifulSoup(response.content, 'html5lib') csrf = soup.find(attrs={'name': '_csrf'}).attrs['content']
Unfortunately, the token is not available there anymore. The subsequent authentication request will fail with 400 if no CSRF token is provided.
400
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the past the way to obtain the CSRF token was:
Unfortunately, the token is not available there anymore. The subsequent authentication request will fail with
400
if no CSRF token is provided.The text was updated successfully, but these errors were encountered: