-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for bearer authentication #119
Comments
I confirm that Bearer authentication is not supported yet, and that it would be a nice thing to have. I let this traceback here so people can google it. File "/usr/lib/python3.10/site-packages/caldav/davclient.py", line 362, in principal
self._principal = Principal(client=self, *largs, **kwargs)
File "/usr/lib/python3.10/site-packages/caldav/objects.py", line 404, in __init__
cup = self.get_property(dav.CurrentUserPrincipal())
File "/usr/lib/python3.10/site-packages/caldav/objects.py", line 175, in get_property
foo = self.get_properties([prop], **passthrough)
File "/usr/lib/python3.10/site-packages/caldav/objects.py", line 198, in get_properties
response = self._query_properties(props, depth)
File "/usr/lib/python3.10/site-packages/caldav/objects.py", line 142, in _query_properties
return self._query(root, depth)
File "/usr/lib/python3.10/site-packages/caldav/objects.py", line 160, in _query
ret = getattr(self.client, query_method)(
File "/usr/lib/python3.10/site-packages/caldav/davclient.py", line 410, in propfind
return self.request(url or self.url, "PROPFIND", props,
File "/usr/lib/python3.10/site-packages/caldav/davclient.py", line 557, in request
raise NotImplementedError("Auth method %s not supported yet" % auth_type)
NotImplementedError: Auth method bearer not supported yet |
I suppose implementing would result in:
|
Yes - it shouldn't be too difficult, if only having a server to test with. Well, there is always the Google servers :-) |
This won't go into v0.10 I'm afraid. |
This is fixed by #260 |
Is connecting to a Google CalDAV calendar with OAuth2 already possible? If yes, is there documentation / an example of how to do so? I would like to use this lib for Google calendars as well. Thanks for the great work so far 🙏🏻 |
In theory it should be possible, but there exists no documentation or examples on how to connect to Google (and I don't have time looking into it this week nor next, probably not even this month nor next), and pull request #260 also seem to lack documentation and test code. https://developers.google.com/calendar/caldav/v2/guide seems to be a relevant resource if you want to give it a go. |
I see, thank you for the quick reply anyway! I see if I can get it to work or if I need to use another lib for Google (which I would like to avoid). |
I just had a quick look into the documentation - we're still lacking documentation on how to connect to Google. Did anyone successfully connect to their Google calendar? |
yep, here's an example code that does just that:
|
Depended on by tobixen/calendar-cli#81
The text was updated successfully, but these errors were encountered: