Benjamin Dauvergne
cdc60a7e84
admin: try to add default communal site variable only after having saved the one entered by the user
...
fixes #3968
2013-11-13 17:02:20 +01:00
Benjamin Dauvergne
0bf3d4a6eb
data_source_plugin: memoize result of DataSource.get_content, add rules to desactivate cache
...
Cache is ignored:
- when refresh timeout is 0
- when the query string contains 'nocache'
fixes #3951
2013-11-13 16:38:43 +01:00
Benjamin Dauvergne
43bf4f0760
data_source_plugin: add DataSource.verify_certificate field
...
When False it suppress certificate validation from calls to web
services.
2013-11-13 16:09:24 +01:00
Benjamin Dauvergne
8e974210ad
admin: download communal site metadatas after notification of wcsinstd
2013-11-06 15:43:29 +01:00
Benjamin Dauvergne
11622c2a6b
admin: let the parent class save_related() method decide to notify the remote wcsinstd
2013-11-06 14:49:31 +01:00
Benjamin Dauvergne
608fbad721
admin: do not overwrite previous value of WcsInstanceAdmin.readonly_fields
2013-11-05 10:51:25 +01:00
Benjamin Dauvergne
ad71c6e523
admin: add missing call to .iteritems()
2013-11-04 21:15:24 +01:00
Benjamin Dauvergne
a92f634da5
admin: set default variables for new wcsinst instances
2013-11-04 18:36:46 +01:00
Benjamin Dauvergne
b28a2d41a2
admin: do not initialize provider.metadata at first when saving a wcsinst object
2013-11-04 18:11:59 +01:00
Benjamin Dauvergne
c6634c8229
admin: get_or_create() return a 2-tuple
2013-11-04 18:02:18 +01:00
Benjamin Dauvergne
8459dbf6b3
admin: fix reference to missing variable
2013-11-04 12:52:29 +01:00
Benjamin Dauvergne
7dc64297f4
admin: in WcsInstancePortailCitoyenAdmin notify wcsinstd also after variables and secrets have been saved
...
fixes #3927
2013-11-04 12:46:14 +01:00
Benjamin Dauvergne
54d320f4ff
admin: improve handling of modification to WcsInstance
2013-11-04 12:46:14 +01:00
Frédéric Péters
cb99b39ac0
help: spelling fix
2013-10-31 10:08:07 +01:00
Benjamin Dauvergne
7b7f9ce76b
admin: log traceback for the metadata retrieving failure at warning level, set retry timeout value at 4 seconds at first
...
The exponential backoff will retry, 4 seconds, 12 seconds and 28 seconds
after the first try.
2013-10-29 11:10:45 +01:00
Benjamin Dauvergne
040e2c547a
update translations
2013-10-29 10:27:20 +01:00
Benjamin Dauvergne
6aefe79a6b
admin: do not delete the communal site when we cannot retrieve the metadata just wait longer and finally fail
2013-10-29 10:27:14 +01:00
Benjamin Dauvergne
f45332aa85
admin: clear group linked to communal sites when deleting a site
2013-10-28 00:26:33 +01:00
Benjamin Dauvergne
ab82708df8
admin: show URL of communal sites in admin list and edit page
2013-10-26 09:37:24 +02:00
Benjamin Dauvergne
c5d698dd46
admin: setting PORTAIL_CITOYEN_WCSINSTANCE_SAML2_ROLE_PREFIX is no longer used
2013-10-26 09:36:36 +02:00
Benjamin Dauvergne
c1442ee8f7
admin: add link to communnal site in listing
2013-10-26 09:31:57 +02:00
Benjamin Dauvergne
9b8299c87b
admin: change rule to build the admin group of communal sites
2013-10-26 09:21:31 +02:00
Benjamin Dauvergne
49ef58b294
msp: add OAuth2 and rest proxy endpoints
2013-10-22 17:31:14 +02:00
Benjamin Dauvergne
25ac8e7818
msp/locale: fix syntax error
2013-10-16 10:57:04 +02:00
Benjamin Dauvergne
7e119eafc4
msp/locale: fix grammatical error, use mon.Service-Public.fr as MSP name everywhere
2013-10-16 10:10:24 +02:00
Benjamin Dauvergne
02dd090025
MANIFEST.in: add missing jpg image for msp, and the README.txt
2013-10-15 23:34:10 +02:00
Benjamin Dauvergne
87c2f9d6b5
MANIFEST.in: add missing extension apps
2013-10-15 23:25:23 +02:00
Benjamin Dauvergne
f2a4ddb850
msp: add missing static files
2013-10-15 23:23:53 +02:00
Benjamin Dauvergne
116a5c71c8
msp/views: remove remaining reference to SSOViewMixin
2013-10-11 22:53:05 +02:00
Benjamin Dauvergne
0c671df9b1
msp: remove SSOViewMixin and reduce scope required for sso views
2013-10-11 22:52:15 +02:00
Benjamin Dauvergne
412ccb1eee
add msp integration application
...
Requirements
============
Your base template must use django-sekizai and must contain a sekizai block named
"css" and another named "js" respectively for stylesheet and javascript files.
Installation
============
Add the application to your installed apps::
INSTALLED_APPS += ( 'msp', )
Install the authentication backend::
AUTHENTICATION_BACKENDS += ( 'msp.backends.MspBackend', )
Define needed settings, we show here the default values::
MSP_AUTHORIZE_URL = 'https://mon.service-public.fr/apis/app/oauth/authorize '
MSP_TOKEN_URL = 'https://mon.service-public.fr/apis/app/oauth/token '
MSP_API_URL = 'https://mon.service-public.fr/apis/ '
MSP_CLIENT_ID = 'id assigned by DIMAP'
MSP_CLIENT_SECRET = 'secret assigned by DIMAP'
MSP_CLIENT_CERTIFICATE = ('/my-path/my-certificate.crt', '/my-path/my-certificate.key')
MSP_VERIFY_CERTIFICATE = False
You must plug the application views in your urls.py file by adding this
content::
url(r'^msp/', include('msp.urls')),
To link your account to MSP or unlink your account from MSP, add the following
content to your template::
{% include 'msp/linking.html' %}
It will show a linking link when unauthenticated and when no msp account is
linked to the current account or an unlinking link when authenticated and a
to MSP exists.
To show a connection box include this content in your template::
{% include 'msp/connecting.html' %}
To make the include file use a popup to talk to MSP add the popup parameter
like in the following content::
{% include 'msp/connecting.html' with popup=1 %}
2013-10-11 22:05:21 +02:00
Benjamin Dauvergne
af79687ecb
models: make mptt warning in django-cms shut up
2013-10-10 21:21:14 +02:00
Benjamin Dauvergne
29e9b8d2c8
migrations: rewrite migrations
2013-10-07 16:02:15 +02:00
Benjamin Dauvergne
0b7785cafc
views: publish a list of groups as a JSON document
2013-10-07 14:29:00 +02:00
Benjamin Dauvergne
cf147d3da9
passerelle_register_plugin/forms: log error when communicating with passerelle, and do not block display
2013-10-07 11:32:23 +02:00
Frédéric Péters
4768e2187e
change test key variable name to avoid pylint 'redefining' warning
2013-10-02 22:41:07 +02:00
Frédéric Péters
340c017689
remove trailing spaces
2013-10-02 22:40:34 +02:00
Frédéric Péters
d29e7bd17d
remove unused to_save variable
2013-10-02 22:38:24 +02:00
Frédéric Péters
f5fb6f0ced
fix typo in pk_set variable name
2013-10-02 22:34:48 +02:00
Benjamin Dauvergne
1ec5c4cc5f
admin: when creating a new wcs instance, make the current user an admin of the new service to simplify bootstraping
2013-09-21 02:53:21 +02:00
Benjamin Dauvergne
02951dd92a
admin: wait before trying to retrieve metadatas, use the LibertyProvider.clean() method to initialize the new instance
2013-09-21 02:43:33 +02:00
Benjamin Dauvergne
87ff8d8339
admin: fix variable references in last commit, set protocol conformance
2013-09-21 02:28:25 +02:00
Benjamin Dauvergne
7b1a33b8b4
admin: when creating new wcs instance, import their metadatas
2013-09-21 02:07:30 +02:00
Benjamin Dauvergne
1742c376ce
admin: when using wcsinst with portail_citoyen, initialize admin groups when creating or updating a WcsInstance model
2013-09-19 18:01:26 +02:00
Benjamin Dauvergne
8005a660f5
admin: show the is_active field in user list display
2013-09-16 14:51:37 +02:00
Benjamin Dauvergne
66a0cf8638
passerelle_register_plugin/templates: change button caption to "Validate"
2013-09-16 14:36:30 +02:00
Benjamin Dauvergne
be9f849e48
portail_citoyen_tags: new templatetags library to match group to users in templates
...
This commit adds the following assignment tags:
- {% user_in_group "<group-name>" as is_user_in_group_xxx %}
- {% user_in_group_prefix "<group-prefix> as is_user_in_group_prefix_xxx %}
refs #3551
2013-09-09 15:54:01 +02:00
Benjamin Dauvergne
087afdf071
views: add view stats() which reports some stats about federations and users counts
...
fixes #3550
2013-09-09 14:38:08 +02:00
Benjamin Dauvergne
628015b857
locale: fix french translation
2013-09-06 14:17:23 +02:00
Benjamin Dauvergne
aaa578771b
add command to flush memcache when needed
2013-09-05 18:50:19 +02:00