0001-integrate-authentic2-auth-fc-in-packaging-20852.patch
MANIFEST.in | ||
---|---|---|
1 | 1 |
recursive-include data * |
2 |
recursive-include tests *.py |
|
2 |
recursive-include tests *.py *.jpg *.pem *.xml *.json
|
|
3 | 3 |
recursive-include tests_rbac *.py |
4 | 4 |
recursive-exclude tests *.pyc |
5 | 5 |
recursive-exclude tests_rbac *.pyc |
6 | ||
6 | 7 |
include tox.ini .coveragerc |
7 | 8 | |
8 | 9 |
# static |
9 | 10 |
recursive-include src/authentic2/static *.css *.js *.ico *.gif *.png *.jpg |
10 | 11 |
recursive-include src/authentic2/manager/static *.css *.js *.png |
12 |
recursive-include src/authentic2_auth_fc/static/authentic2_auth_fc *.css *.js *.png *.svg |
|
11 | 13 | |
12 | 14 |
# templates |
13 | 15 |
recursive-include src/authentic2/templates *.html *.txt *.xml |
... | ... | |
19 | 21 |
recursive-include src/authentic2/auth2_auth/auth2_ssl/templates *.html *.txt *.xml |
20 | 22 |
recursive-include src/authentic2/auth2_auth/templates *.html *.txt *.xml |
21 | 23 |
recursive-include src/authentic2/auth2_auth/auth2_oath/templates *.html *.txt *.xml |
24 |
recursive-include src/authentic2_auth_fc/templates/authentic2_auth_fc *.html |
|
22 | 25 |
recursive-include src/authentic2_auth_saml/templates/authentic2_auth_saml *.html |
23 | 26 |
recursive-include src/authentic2_auth_oidc/templates/authentic2_auth_oidc *.html |
24 | 27 |
recursive-include src/authentic2_idp_oidc/templates/authentic2_idp_oidc *.html |
... | ... | |
37 | 40 |
recursive-include src/authentic2/manager/locale *.po *.mo |
38 | 41 |
recursive-include src/authentic2/a2_rbac/locale *.po *.mo |
39 | 42 |
recursive-include src/django_rbac/locale *.po *.mo |
43 |
recursive-include src/authentic2_auth_fc/locale *.po *.mo |
|
40 | 44 |
recursive-include src/authentic2_auth_saml/locale *.po *.mo |
41 | 45 |
recursive-include src/authentic2_auth_oidc/locale *.po *.mo |
42 | 46 |
recursive-include src/authentic2_idp_oidc/locale *.po *.mo |
43 | 47 | |
48 |
recursive-include src/authentic2_auth_fc *.json |
|
49 | ||
44 | 50 |
recursive-include src/authentic2 README |
45 | 51 |
recursive-include src/authentic2_provisionning_ldap/tests *.ldif |
46 | 52 |
recursive-include src/authentic2_provisionning_ldap/tests *.ldif |
debian/control | ||
---|---|---|
30 | 30 |
python-django-filters (<< 2), |
31 | 31 |
python-pil, |
32 | 32 |
python-tablib |
33 |
Provides: ${python:Provides} |
|
33 |
Breaks: python-authentic2-auth-fc (<< 0.26) |
|
34 |
Replaces: python-authentic2-auth-fc (<< 0.26) |
|
35 |
Provides: ${python:Provides}, python-authentic2-auth-fc |
|
34 | 36 |
Recommends: python-ldap |
35 | 37 |
Suggests: python-raven |
36 | 38 |
Description: Versatile identity server |
setup.py | ||
---|---|---|
117 | 117 |
install_requires=[ |
118 | 118 |
'django>=1.8,<2.0', |
119 | 119 |
'requests>=2.3', |
120 |
'requests-oauthlib', |
|
120 | 121 |
'django-model-utils>=2.4', |
121 | 122 |
'dnspython>=1.10', |
122 | 123 |
'Django-Select2>5,<6', |
... | ... | |
172 | 173 |
'authentic2-idp-cas = authentic2_idp_cas:Plugin', |
173 | 174 |
'authentic2-idp-oidc = authentic2_idp_oidc:Plugin', |
174 | 175 |
'authentic2-provisionning-ldap = authentic2_provisionning_ldap:Plugin', |
176 |
'authentic2-auth-fc = authentic2_auth_fc:Plugin', |
|
175 | 177 |
], |
176 | 178 |
}) |
src/authentic2_auth_fc/app_settings.py | ||
---|---|---|
18 | 18 | |
19 | 19 | |
20 | 20 |
class AppSettings(object): |
21 |
'''Thanks django-allauth''' |
|
22 | 21 |
__SENTINEL = object() |
23 | 22 | |
24 | 23 |
def __init__(self, prefix): |
... | ... | |
26 | 25 | |
27 | 26 |
def _setting(self, name, dflt=__SENTINEL): |
28 | 27 |
from django.conf import settings |
29 |
from django.core.exceptions import ImproperlyConfigured |
|
30 | 28 | |
31 | 29 |
v = getattr(settings, self.prefix + name, dflt) |
32 | 30 |
if v is self.__SENTINEL: |
33 |
raise ImproperlyConfigured('Missing setting %r' % (self.prefix + name))
|
|
31 |
raise AttributeError(name)
|
|
34 | 32 |
return v |
35 | 33 | |
36 | 34 |
@property |