dataset/seed/mailman/manual/image/postinstall/risotto/provider.py

14 lines
419 B
Python
Raw Normal View History

2022-03-08 19:42:28 +01:00
# -*- coding: utf-8 -*-
from allauth.socialaccount.providers.lemonldap.provider import LemonLDAPAccount, LemonLDAPProvider
from allauth.socialaccount import app_settings
class RisottoProvider(LemonLDAPProvider):
id = "risotto"
settings = app_settings.PROVIDERS.get('risotto', {})
name = settings.get("LEMONLDAP_NAME", 'Risotto')
account_class = LemonLDAPAccount
provider_classes = [RisottoProvider]