https://github.com/beeeegi/eclipse
Eclipse is a web app for secure file uploads using Discord or Google login. Files are sent to a Discord channel via webhook, and users can view and download them.
https://github.com/beeeegi/eclipse
discord-api discord-cdn flask georgian google-api webhooks
Last synced: 2 months ago
JSON representation
Eclipse is a web app for secure file uploads using Discord or Google login. Files are sent to a Discord channel via webhook, and users can view and download them.
- Host: GitHub
- URL: https://github.com/beeeegi/eclipse
- Owner: beeeegi
- License: mit
- Created: 2024-06-02T11:31:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-29T15:36:15.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T12:12:05.593Z (over 1 year ago)
- Topics: discord-api, discord-cdn, flask, georgian, google-api, webhooks
- Language: Python
- Homepage:
- Size: 944 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eclipse
Eclipse is a web application that allows users to securely log in using either their Discord or Google accounts and upload files. Uploaded files are sent to a Discord channel using a webhook, and users can view and download their uploaded files through the web interface.
## Developer notes
I am not primarily a GUI developer, so the graphical user interface in this project sucks. The application has been tested locally, and its behavior on a live web server is unknown. Due to recent changes in Discord's CDN authentication mechanism, attachment URLs now include three new parameters: ex, is, and hm. These changes are intended to improve security but will affect how attachment URLs are managed in this application. So I can't really make a downloadable files with this project, the script is written BEFORE the changes were applied to the cdn links so it may not work.
## Setup and Installation
`1.` Clone the repository
```bash
git clone https://github.com/beeeegi/Eclipse
```
`2.` Install requirements
```bash
cd eclipse
pip install -r requirements.txt
```
`3.` Create a `.env` File
Put it in the root directory and paste this in the file:
```env
SECRET_KEY=your_secret_key
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
DISCORD_REDIRECT_URI=http://localhost:5000/callback
DISCORD_CHANNEL_ID=your_discord_channel_id
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GOOGLE_REDIRECT_URI=http://localhost:5000/google/callback
```
`4.` Run the application with:
```bash
python3 app.py
```
You can access the app with this link: `http://localhost:5000`
## Usage
### Authentication
You have two options here: Google or Discord
### File Upload
After logging in, you will be presented with an option to upload a file or view the library.
In the library section, you have option to download the file again or view file's name, size and the upload date.
## Screenshots

