Content-Length: 267908 | pFad | http://redirect.github.com/googleapis/google-auth-library-python-oauthlib/pull/304/files

03 Adding support to specify browser while launching browser to authenticate by anujmaurice · Pull Request #304 · googleapis/google-auth-library-python-oauthlib · GitHub
Skip to content

Adding support to specify browser while launching browser to authenticate #304

New issue

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

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 3 additions & 1 deletion google_auth_oauthlib/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def run_local_server(
redirect_uri_trailing_slash=True,
timeout_seconds=None,
token_audience=None,
browser=None,
**kwargs
):
"""Run the flow using the server strategy.
Expand Down Expand Up @@ -437,7 +438,8 @@ def run_local_server(
auth_url, _ = self.authorization_url(**kwargs)

if open_browser:
webbrowser.open(auth_url, new=1, autoraise=True)
# if browser is None it defaults to default browser
webbrowser.get(browser).open(auth_url, new=1, autoraise=True)

if authorization_prompt_message:
print(authorization_prompt_message.format(url=auth_url))
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://redirect.github.com/googleapis/google-auth-library-python-oauthlib/pull/304/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy