planetary-computer-sdk-for-python icon indicating copy to clipboard operation
planetary-computer-sdk-for-python copied to clipboard

Allow `planetary_computer.sign_url` to refresh token of signed URLs

Open bmcandr opened this issue 1 year ago • 0 comments

The sign_url function checks whether SAS token query parameters are present and, if present, returns the URL unaltered:

https://github.com/microsoft/planetary-computer-sdk-for-python/blob/0c1d7849b9fb8eb270fcde15dcd7a0ca1df18cd3/planetary_computer/sas.py#L161-L164

Is it possible to allow this function to refresh the token of signed URLs by checking the expiration datetime of the se query parameter?

bmcandr avatar Nov 14 '24 15:11 bmcandr