This Docker image provides an API to manage OAuth2 API keys for Zoho services. It ensures that API keys are stored and reused efficiently, only generating a new key when the existing one expires. The application can run on Google Cloud Run or locally for testing.
/get_api_key endpoint.| Variable | Description |
|---|---|
GCS_BUCKET_NAME | Google Cloud Storage bucket name (GCP only) |
URL | OAuth2 token endpoint |
REFRESH_TOKEN | OAuth2 refresh token |
CLIENT_ID | OAuth2 client ID |
CLIENT_SECRET | OAuth2 client secret |
REDIRECT_URL | OAuth2 redirect URL |
ENVIRONMENT | Set to local for local storage |
This container is optimized for Google Cloud Run and can be deployed using GitHub Actions.
Install dependencies:
pip install -r requirements.txt
Set up environment variables (.env file recommended).
Run the server:
uvicorn main:app --host 127.0.0.1 --port 8000 --reload
Access the API at http://127.0.0.1:8000/docs.
docker pull pak00329/zoho-api-key:latest
Content type
Image
Digest
sha256:8b637bbfc…
Size
54.8 MB
Last updated
over 1 year ago
docker pull pak00329/zoho-api-key