aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/office365.py
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-06-14 22:27:21 -0300
committerJason Gunthorpe <jgg@nvidia.com>2020-06-22 20:24:18 -0300
commitcbdacc5965fc401f7401b977aef806230bf556ef (patch)
tree8691d8d02ab159f6b2fa48a0b5c78ab4a51d87a2 /cloud_mdir_sync/office365.py
parentb9445b60cb0a1abd1bc437f213a284dfa03fbb74 (diff)
downloadcloud_mdir_sync-cbdacc5965fc401f7401b977aef806230bf556ef.tar.gz
cloud_mdir_sync-cbdacc5965fc401f7401b977aef806230bf556ef.tar.bz2
cloud_mdir_sync-cbdacc5965fc401f7401b977aef806230bf556ef.zip
OAUTH: Only start one webbrowser tab for concurrent authentications
Starting a browser tab per authentication attempt makes a mess, so long as there is something in auth_redirs then the active browser tab will eventually get redirected to the new auth being added. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'cloud_mdir_sync/office365.py')
-rw-r--r--cloud_mdir_sync/office365.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py
index d76c891..030254b 100644
--- a/cloud_mdir_sync/office365.py
+++ b/cloud_mdir_sync/office365.py
@@ -7,7 +7,6 @@ import logging
import os
import pickle
import secrets
-import webbrowser
from typing import Any, Dict, Optional, Union
import aiohttp
@@ -187,10 +186,6 @@ class GraphAPI(oauth.Account):
scopes=self.graph_scopes + self.owa_scopes,
login_hint=self.user)
- print(
- f"Goto {self.cfg.web_app.url} in a web browser to authenticate"
- )
- webbrowser.open(url)
q = await self.cfg.web_app.auth_redir(url, state,
self.redirect_url)