F4ilji
e64f9cca83
fix(vikon): save ABITUR API response in temp for reference
2026-07-04 20:26:25 +05:00
F4ilji
b4829492e5
fix(vikon): keep ZIP archive in temp after update
2026-07-04 20:17:33 +05:00
F4ilji
d358e6fdb0
fix(vikon): keep downloaded files in temp after update
2026-07-04 20:16:56 +05:00
F4ilji
e0cf362433
fix(vikon): create target directories before rename in syncFiles
2026-07-04 19:29:50 +05:00
F4ilji
0097a803b4
fix(vikon): sync from extracted subdirectory inside ZIP
2026-07-04 19:21:32 +05:00
F4ilji
13df1c3a64
fix(vikon): simplify syncFiles - just overwrite, no backups or deletes
2026-07-04 19:11:25 +05:00
F4ilji
93bd3963bf
fix(vikon): use rename() instead of copy() for syncFiles - atomic, no extra disk space
2026-07-04 19:09:13 +05:00
F4ilji
e502225e9c
fix(vikon): clean up corrupted CheckAccessAction file
2026-07-04 19:01:05 +05:00
F4ilji
44abdb471f
fix(vikon): check writability only for module dirs (sveden, abitur, vsoko)
2026-07-04 18:46:23 +05:00
F4ilji
cb9639f10f
fix(vikon): fix excluded dirs matching for public/build and public/vikon_core
2026-07-04 18:45:34 +05:00
F4ilji
4cc3505050
fix(vikon): exclude non-writable dirs from access check (vendor, build, vikon_core)
2026-07-04 18:34:19 +05:00
F4ilji
3dc29d44d8
fix(vikon): DNS bypass, OAuth callback, ABITUR init, token cache, ZIP security
...
- Add CURLOPT_RESOLVE DNS bypass for db-nica.ru / file.db-nica.ru
- Add OAuth callback route with CSRF state validation
- Add /authorize endpoint to generate OAuth URL with state
- Add ABITUR special case: init empty module core without ZIP download
- Add token validation caching (150s) to reduce API calls
- Block PHP/PHTML/PHAR files inside ZIP before extraction
- Add VikonTokenRefresh middleware for auto token refresh
- Add vikon.refresh middleware alias to Kernel
2026-07-04 17:44:50 +05:00
F4ilji
93721fc5ae
fix(vikon): use correct VIKON API endpoints
...
- CheckAccessAction: pull_updates/assist/getModulesTreeAsync (not checkAccessJson)
- CheckVersionAction: pull_updates/assist/getUpdateVersionJson (not getLatestVersion)
These are the actual endpoints used by the original vikon_core update.js
2026-07-04 13:57:17 +05:00
F4ilji
a963647770
fix(vikon): use form-encoded POST + correct domain for OAuth token exchange
...
- HttpTask::post() now sends application/x-www-form-urlencoded (not JSON)
- AuthenticateAction sends to db-nica.ru (not auth.db-nica.ru) matching original vikon_core
- Original code: remoteRequest($apiDomen . 'oauth2/authorize/token', ...)
2026-07-04 13:46:49 +05:00
F4ilji
f4f8bc8e77
feat(vikon): rewrite VikonIntegration from scratch — OAuth + core update
...
- HttpTask: Laravel Http facade with SSL enabled, retry, timeout
- ValidateTokenTask: token check via auth.db-nica.ru
- RefreshTokenTask: token refresh via db-nica.ru
- FilesystemTask: path traversal protection, blocked extensions (PHP/ASP/etc)
- AuthenticateAction: OAuth2 code→token exchange
- CheckAccessAction: token validation + filesystem writability check
- CheckVersionAction: version comparison against remote API
- UpdateCoreAction: ZIP download, Zip Slip protection, atomic sync with rollback
- VikonController: thin controller, 7 endpoints with Session-based token storage
- Routes: access-check, dashboard.auth, throttle:30,1 middleware
- Vue 3 Composition API frontend with progress bar
- Config: all secrets in .env via config/vikon.php
- vikon_core kept as fallback (not deleted)
2026-07-04 12:53:28 +05:00
F4ilji
47aac647ac
feat(vikon): remove broken VikonIntegration container - starting fresh
2026-07-04 12:40:41 +05:00
F4ilji
169a2f5654
changes
2026-04-08 14:14:38 +05:00