This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
radicale-keks-cloud/radicale_keks_cloud/__init__.py

12 lines
322 B
Python

from radicale.auth import BaseAuth
import requests
class Auth(BaseAuth):
def is_authenticated(self, user, password):
res = requests.post("https://account.keks.cloud/api/v1/user/check", {"username": user, "password": password})
if res.status_code == 200:
return True
return False