File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,9 @@ def _get_app_and_auth_code(
31
31
client_id , client_secret , authority = authority , http_client = MinimalHttpClient ())
32
32
redirect_uri = "http://localhost:%d" % port
33
33
exit_hint = "Visit http://localhost:{p}?code=exit to abort" .format (p = port )
34
- ac = obtain_auth_code (port , auth_uri = "http://localhost:{p}?{q}" .format (p = port , q = urlencode ({
35
- "text" : "Open this link to sign in. You may use incognito window" ,
36
- "link" : app .get_authorization_request_url (
37
- scopes , redirect_uri = redirect_uri , ** kwargs ),
38
- "exit_hint" : exit_hint ,
39
- })))
34
+ ac = obtain_auth_code (port , auth_uri = app .get_authorization_request_url (
35
+ scopes , redirect_uri = redirect_uri ),
36
+ text = "Open this link to sign in. You may use incognito window" , ** kwargs )
40
37
logger .warning (exit_hint )
41
38
assert ac is not None
42
39
return (app , ac , redirect_uri )
You can’t perform that action at this time.
0 commit comments