Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PyViCare/PyViCareBrowserOAuthManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __execute_browser_authentication(self):
oauth_session = OAuth2Session(
self.client_id, redirect_uri=redirect_uri, scope=VIESSMANN_SCOPE, code_challenge_method='S256')
code_verifier = generate_token(48)
authorization_url, _ = oauth_session.create_authorization_url(AUTHORIZE_URL, code_verifier=code_verifier)
authorization_url, _ = oauth_session.create_authorization_url(AUTHORIZE_URL, code_verifier=code_verifier, scope="Internal openid offline_access")

webbrowser.open(authorization_url)

Expand Down
2 changes: 1 addition & 1 deletion PyViCare/PyViCareOAuthManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __create_new_session(self, username, password, token_file=None):
oauth_session = OAuth2Session(
self.client_id, redirect_uri=REDIRECT_URI, scope=VIESSMANN_SCOPE, code_challenge_method='S256')
code_verifier = generate_token(48)
authorization_url, _ = oauth_session.create_authorization_url(AUTHORIZE_URL, code_verifier=code_verifier)
authorization_url, _ = oauth_session.create_authorization_url(AUTHORIZE_URL, code_verifier=code_verifier, scope="Internal openid offline_access")
logger.debug("Auth URL is: %s", authorization_url)

header = {'Content-Type': 'application/x-www-form-urlencoded'}
Expand Down