IndigoWizard / NDVI-Viewer

Monitor Vegetation Health by Viewing & Comparing NDVI Values & Satellite Images On The Fly!
https://ndvi-viewer.streamlit.app/
16 stars 6 forks source link

Earth Engine Authentication on Streamlit through Google Cloud Service Account #33

Closed IndigoWizard closed 7 months ago

IndigoWizard commented 7 months ago

Main PR gist

This PR addresses the authentication issue of Earth Engine with geemap in Streamlit on Streamlit Cloud. The issue was raised in response to the indefinite authentication loop observed when using the geemap.ee_initialize() method in the deployed Streamlit app. The proposed solution is to modify the Earth Engine initialization process based on the presence of Google Cloud Service Account information through a json key in Streamlit Secrets and drop the geemap method.

Issue ticket

Type of change

Check relevant options relevant to this PR:

Changes description

Checklist