Code Monkey home page Code Monkey logo

Comments (9)

zachahuy02 avatar zachahuy02 commented on August 10, 2024 1

I am getting the same error and was able to remove this error when disable https://support.google.com/a/answer/9368756?hl=en. Re-enable causes the same error.

It looks like this happening in the python oauth2 sdk.

from python-storage.

jeliashi avatar jeliashi commented on August 10, 2024

are there any updates on this? I experience the same error...

from python-storage.

emanuelem avatar emanuelem commented on August 10, 2024

Hi @hixus ,

gsutil uses google-reauth-python library as you can see here.

There isn't much documentation out there on how to use that library, but you can try studying how it was implemented in gsutil here.

from python-storage.

trickster avatar trickster commented on August 10, 2024

Hi,

gsutil asks for re-authentication, and asks for password. Our accounts are SSO enabled, so there is no password. How to proceed with this?

For now, we use a service account gcloud auth activate-service-account --key-file=/creds.json to bypass this issue. Also we cannot use this for user auth enabled applications

gcloud init does not work either, it says Re authentication needed.

from python-storage.

andrewsg avatar andrewsg commented on August 10, 2024

@sivakon Can I confirm that you are also under the "Session Length for Google Cloud Services" organization policy as per this page: https://support.google.com/a/answer/9368756?hl=en ?

from python-storage.

trickster avatar trickster commented on August 10, 2024

@andrewsg Upon talking with the support team, I found out that they implemented new security policy that restricts user auth session length https://support.google.com/a/answer/9368756?hl=en

from python-storage.

tseaver avatar tseaver commented on August 10, 2024

I believe this is actually an issue for the google-auth-python repository, likely already identified in googleapis/google-auth-library-python#261.

from python-storage.

andrewsg avatar andrewsg commented on August 10, 2024

We're making progress on this in the auth side and should have a timeline soon.

from python-storage.

tseaver avatar tseaver commented on August 10, 2024

googleapis/google-auth-library-python#727 added reauth support to the synchronous version of user credentials. It was released in [google-auth 1.29.0]](https://github.com/googleapis/google-auth-library-python/releases/tag/v1.29.0).

googleapis/google-auth-library-python#738 are now supported in added reauth support to the asynchronous version of user credentials. It was released in `google.auth 1.30.0. Note that the async version of the feature is marked as "internal ... for gcloud developers only" in the release notes.

from python-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.