File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -845,8 +845,7 @@ def acquire_token_interactive(self,
845
845
domain_hint = None , # type: Optional[str]
846
846
claims_challenge = None ,
847
847
):
848
- if not port :
849
- port = _get_open_port ()
848
+ _port = port or _get_open_port ()
850
849
redirect_uri = "http://localhost:%d" % port
851
850
request_state = str (uuid .uuid4 ())
852
851
auth_url = self .get_authorization_request_url (
@@ -858,7 +857,7 @@ def acquire_token_interactive(self,
858
857
prompt = prompt ,
859
858
domain_hint = domain_hint ,
860
859
claims_challenge = claims_challenge ,)
861
- auth_code , state = obtain_auth_code (port , auth_uri = auth_url )
860
+ auth_code , state = obtain_auth_code (_port , auth_uri = auth_url )
862
861
if not auth_code :
863
862
raise TimeoutError ("Server timed out" )
864
863
if request_state != state :
You can’t perform that action at this time.
0 commit comments