From 30f37fcd0070dbb7d5ccabc9be0438cec37887a5 Mon Sep 17 00:00:00 2001 From: Remi Cresson <remi.cresson@inrae.fr> Date: Thu, 8 Jun 2023 19:57:08 +0200 Subject: [PATCH 1/2] Doc: open-date --> open-data --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65583bb..f1a77a9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ </a> Largely inspired from *Microsoft Planetary Computer SDK*, **Dinamis-SDK** is -built on the STAC ecosystem and provides easy access to open-date Spot-6/7 +built on the STAC ecosystem and provides easy access to open-data Spot-6/7 imagery in COG format. ```python -- GitLab From 7def4254adfb2517f3da733be239cfde39f7eac8 Mon Sep 17 00:00:00 2001 From: Remi Cresson <remi.cresson@inrae.fr> Date: Thu, 8 Jun 2023 20:02:12 +0200 Subject: [PATCH 2/2] Doc: detail credentials --- doc/credentials.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/credentials.md b/doc/credentials.md index 4372458..9ff33d6 100644 --- a/doc/credentials.md +++ b/doc/credentials.md @@ -1,8 +1,11 @@ # Credentials -## Login +The credentials are retrieved using the device code flow on the first call of +`dinamis_sdk.sign_inplace()`. Just follow the instructions! -The credentials are then valid for 5 days. Every time +## Renewal + +The credentials are valid for 5 days. Every time `dinamis_sdk.sign_inplace` is called, the credentials are renewed for another 5 days. After 5 days idle, you will have to log in again. @@ -13,6 +16,13 @@ The signed URLs for STAC objects assets are valid during 7 days starting after !!! Info - `dinamis_sdk.sign_inplace` can also be applied directly on a particular + `dinamis_sdk.sign_inplace()` can also be applied directly on a particular `pystac.item`, `pystac.collection`, `pystac.asset` or any URL as `str`, with the same outcome in term of expiry. + +!!! Warning + + Do no confuse credentials validity with images URL token validity. + Both have different lifecycle. To read how to ask for longer + URLs time-to-live, please read the API reference of + `dinamis_sdk.sign_inplace()`. -- GitLab