Difference between tokens

My first critical question is if Keycloak token expires after a while, or can we use it for a long (or unlimited) time?

And what is the difference between the Keycloak token and the token generated by the OAuth2Session of sentinelhub python?
It seems the former (Keycloak) has much longer token string than the latter. And the token generated by OAuth2Session cannot be used instead of the Keycload token to get the data from cdse-public.

Hi,

This forum is a space specifically for Sentinel Hub services. For Copernicus Data Space Ecosystem questions, please use their Community Forum.

To give you a short answer to your question, you require a client_id and client_secret in your credentials when using sentinelhub python. This example notebook shows you the best method to create credentials for use with sentinelhub python.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.