Content-Length: 266828 | pFad | http://www.togithub.com/googleapis/google-auth-library-python-oauthlib/issues/277

F43A Running run_local_server in Colab notebook doesn't redirect properly · Issue #277 · googleapis/google-auth-library-python-oauthlib · GitHub
Skip to content

Running run_local_server in Colab notebook doesn't redirect properly #277

Open
@chrissyast

Description

@chrissyast
    if not creds or not creds.valid:
        if creds and creds.expired and creds.refresh_token:
            creds.refresh(Request())
        else:
            flow = InstalledAppFlow.from_client_secrets_file(
                'credentials.json', SCOPES)
            creds = flow.run_local_server(port=0)

Trying to run this in a Colab file prints a URL that I need to go to authorise the app. On doing so I'm redirected to http://localhost:58787/?state=blah which can't be reached and the notebook remains listening for a response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      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://www.togithub.com/googleapis/google-auth-library-python-oauthlib/issues/277

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy