This is a locally run web-based application built with NiceGUI to manage API gateways and generate, store, copy, and deauthorize access tokens.
- New Version Released: Previous version moved to flask_version/
 - Cleaner Interface: Single page application that can be easily added to
 - Simple Execution: All the core functionality is contained in app.py
 
- Manage API Gateways: Add, edit, and remove API gateway credentials.
 - OAuth2 Authentication: Securely obtain access tokens via Clio’s authorization flow.
 - Access Token Management:
- View and manage stored tokens.
 - Copy tokens to clipboard for quick usage.
 - Deauthorize tokens before deletion to maintain security.
 
 - Persistent Storage: Uses NiceGUI's built-in storage to keep API keys and tokens.
 
git clone https://github.com/yourusername/clio-access-token-manager.git
cd clio-access-token-managerpython3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activatepip install nicegui httpxpython app.pyThe app should be accessible at http://127.0.0.1:8080.
- Access Tokens
- Tokens are not encrypted and are stored in .nicegui/storage-general.json
 - Refresh tokens are NOT stored for this reason
 - Tokens are valid for 30 days so deauthorize them when you're done
 
 
- 
Register your application with Clio to obtain:
client_idclient_secretredirect_uri(must match http://127.0.0.1:8080/callback)
 - 
Once set up, use the "Create Access Token" button to initiate the authorization process.
 
- Add API Gateways: Input 
Name,Client ID, andClient Secret. - Generate Tokens:
- Select a gateway and click "Create Access Token".
 - The app will redirect to Clio’s authentication page.
 - Upon successful authorization, the token is stored in the Access Tokens page.
 
 - Manage Tokens:
- Copy Token: Click "Copy Token" to copy it to the clipboard.
 - Export Token: Click "Export Token" to download it as a JSON file.
 - Deauthorize Token: Click "Deauthorize Token" to remove it from Clio before deleting.
 
 
- NiceGUI - The UI framework for building modern web apps in Python.
 - FastAPI - Provides backend API routes for OAuth2 handling.
 - httpx - Used for making async HTTP requests.
 
This project is licensed under the MIT License.
This app is built using NiceGUI.
Special thanks to the NiceGUI developers for creating an amazing Python-based UI framework.