feat(sync): WebDAV sur l'APK, et le QR du poste qui le porte
Jeton "utilisateur:mot-de-passe" sur une URL ni Gitea ni GitHub = WebDAV, authentification Basic. Fichier lu et ecrit tel quel ; l'ETag fait le sha (If-None-Match, If-Match, 412 -> conflit). Clair autorise vers l'IP fixe du poste seulement. Eprouve contre le WsgiDAV local : 304, PUT 204, puis synchro du poste. Docs : CLAUDE.md, android-client/README.md (page eveillee comprise). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1464,6 +1464,12 @@ begin
|
||||
begin
|
||||
var LQrUrl := PM.UserPrefs.GetPref('syncUrl');
|
||||
var LQrTok := PM.UserPrefs.GetPref('syncPwd');
|
||||
// WEBDAV : le telephone attend "utilisateur:mot-de-passe" dans le jeton
|
||||
// (il en fait une authentification Basic).
|
||||
if (Pos('/api/v1/repos/', LQrUrl) = 0) and
|
||||
not ContainsText(LQrUrl, 'api.github.com/repos/') and
|
||||
(PM.UserPrefs.GetPref('syncUser') <> '') and (LQrTok <> '') then
|
||||
LQrTok := PM.UserPrefs.GetPref('syncUser') + ':' + LQrTok;
|
||||
var LBits := '';
|
||||
var LSize := 0;
|
||||
if (LQrUrl <> '') and (LQrTok <> '') then
|
||||
|
||||
Reference in New Issue
Block a user