mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
feat!: add telegram auth and async refactor
- Removed "/schedule/update-download-url" endpoint, this mechanism was replaced by Yandex Cloud FaaS. Ура :) - Improved schedule caching mechanism. - Added Telegram WebApp authentication support. - Reworked endpoints responses and errors mechanism. - Refactored application state management. - Make synchronous database operations, middlewares and extractors to asynchronous. - Made user password field optional to support multiple auth methods. - Renamed users table column "version" to "android_version" and made it nullable.
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -44,10 +44,15 @@ jobs:
|
||||
cargo test --verbose
|
||||
env:
|
||||
DATABASE_URL: ${{ env.TEST_DB }}
|
||||
SCHEDULE_DISABLE_AUTO_UPDATE: 1
|
||||
JWT_SECRET: "test-secret-at-least-256-bits-used"
|
||||
VKID_CLIENT_ID: 0
|
||||
VKID_REDIRECT_URI: "vk0://vk.com/blank.html"
|
||||
REQWEST_USER_AGENT: "Dalvik/2.1.0 (Linux; U; Android 6.0.1; OPPO R9s Build/MMB29M)"
|
||||
VK_ID_CLIENT_ID: 0
|
||||
VK_ID_REDIRECT_URI: "vk0://vk.com/blank.html"
|
||||
TELEGRAM_BOT_ID: 0
|
||||
TELEGRAM_MINI_APP_HOST: example.com
|
||||
TELEGRAM_TEST_DC: false
|
||||
YANDEX_CLOUD_API_KEY: ""
|
||||
YANDEX_CLOUD_FUNC_ID: ""
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -26,7 +26,12 @@ jobs:
|
||||
run: cargo test
|
||||
env:
|
||||
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
|
||||
SCHEDULE_DISABLE_AUTO_UPDATE: 1
|
||||
JWT_SECRET: "test-secret-at-least-256-bits-used"
|
||||
VKID_CLIENT_ID: 0
|
||||
VKID_REDIRECT_URI: "vk0://vk.com/blank.html"
|
||||
REQWEST_USER_AGENT: "Dalvik/2.1.0 (Linux; U; Android 6.0.1; OPPO R9s Build/MMB29M)"
|
||||
VK_ID_CLIENT_ID: 0
|
||||
VK_ID_REDIRECT_URI: "vk0://vk.com/blank.html"
|
||||
TELEGRAM_BOT_ID: 0
|
||||
TELEGRAM_MINI_APP_HOST: example.com
|
||||
TELEGRAM_TEST_DC: false
|
||||
YANDEX_CLOUD_API_KEY: ""
|
||||
YANDEX_CLOUD_FUNC_ID: ""
|
||||
Reference in New Issue
Block a user