Update SDK notebooks to include improved authentication ux from planet-client-python#1200#399
Conversation
…t-client-python#1200
|
I tried this in colab, and it hung. so I interrupted, and it semes to be hung on the sleep. If this "checks to see if the refresh token is expired, and performs a new login if it is" - will that work in a notebook environment? |
Interesting. I've tested it both as a local notebook, and in Docker, and those worked fine. I'm not sure why collab is having trouble. |
|
@matthew-ballard I just tried it out myself in collab, and the login part worked fine for me. Did you click the auth link and click "Authorize"? |
|
ah you can disregard, it works. you are right, I just confirmed but did not authorized, I was logged into a temp trial account so I don't usually authorize 😄 |
matthew-ballard
left a comment
There was a problem hiding this comment.
only request would be to change the contributing guide auth snippet
Updates the four SDK notebooks, changing:
to
This is a new utility method added in SDK v3.2.0, which is functionally the same as the prior block, except it also checks to see if the refresh token is expired, and performs a new login if it is (this could happen if a user had previously logged in, and then not made any calls to the SDK for a while).
See also: planetlabs/planet-client-python#1200