andig / carddav2fb

Download CardDAV VCards and upload as phonebook to AVM FRITZ!Box
63 stars 19 forks source link

No access to Google Account possible #236

Open jogi2964 opened 3 years ago

jogi2964 commented 3 years ago

sorry for writing in german, but my english ist very bad. Carddav2fb kann leider nicht auf Google als Carddav-Server zugreifen.

`Client error: `REPORT http://google.com/` resulted in a `405 Method Not All
owed` response:
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, w (truncat
ed...)`

Offensichtlich hat Google wieder etwas geändert und carddav2fb müsste entsprechend angepasst https://developers.google.com/people/carddav

blacksenator commented 3 years ago

I have set up a GMail account with dummy contacts on a trial basis and can confirm the error. In comparrison direct sync in FRITZ!Box or CardBook works. Without a dedicated URL path to the address book (as stated in the relevant documentation), the access to the adressbook is apparently negotiated by these clients. I tried to understand the coding - but as you know, http requests are not my forte.

blacksenator commented 3 years ago

I've been trying to read into the topic for the last few hours. As I understand it, Google requires a rather complex authentication with OAuth2 - which carddav2fb does not support with the use of Guzzle. After reading a number of articles, documentation from libraries and Google help pages, I have to say: I have a rudimentary idea which, in my opinion, needs to be added. But what the best solution here is, I'm completely at a loss.