Skip to content

Allow planetary_computer.sign_url to refresh token of signed URLs #65

Description

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

parsed_qs = parse_qs(parsed_url.query)
if set(parsed_qs) & {"st", "se", "sp"}:
# looks like we've already signed it
return url

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions