This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
authentic2-auth-fc/src/authentic2_auth_msp/auth_frontends.py

26 lines
583 B
Python

from django.utils.translation import gettext_noop
from django.template.loader import render_to_string
from django import forms
from . import app_settings
class MspFrontend(object):
def enabled(self):
return app_settings.enabled
def name(self):
return gettext_noop('mon.service-public.fr')
def id(self):
return 'msp'
def form(self):
return forms.Form
def template(self):
return 'authentic2_auth_msp/connecting.html'
def profile(self, request):
return render_to_string('authentic2_auth_msp/linking.html')