Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Authentic2 plugin

Project Description


Authentic2 plugin to authenticate against the french citizen portal.


  • Install with pip install authentic2-auth-msp

  • Add A2_MSP_ENABLED = True to your file

  • Define the needed parameters:

    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')


When testing agains the test platform of you must change the default endpoints URL in your file:: You must plug the application views in your file by adding this content:


MSP Gateway

If you want to use the OAuth2 proxy to share the access to MSP apis, you must user a shared cache backend: through memcached, redis or the ORM. For example if you have a memcached installed just add the following fragment to your settings:

    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '',

If you want a specific cache backend for the MSP plugin, use the msp name for your cache instead of default. The msp application also provides an OAuth2 gateway to MSP. To configure it your just need to provider a list of client_id, client_secret pairs in your settings, like that:

MSP_CLIENT_CREDENTIALS = (('client_id1', 'client_secret1'),)

The following URL are provided:

  • /msp/authorize : like the authorize URL of MSP
  • /msp/access_token : like the access_token URL of MSP
  • /msp/documents/ : like the document list REST API endpoint of MSP
  • /msp/documents/<id>/ : like the document retrieval REST API endpoint of MSP

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(193.9 kB) Copy SHA256 Hash SHA256
Source None Dec 10, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers