This commit is contained in:
Kekskurse 2019-11-19 19:02:22 +01:00
commit 9eaa46bfc0
2 changed files with 16 additions and 0 deletions

View File

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

5
setup.py Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env python3
from distutils.core import setup
setup(name="radicale_keks_cloud", packages=["radicale_keks_cloud"])