This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

authentic2-auth-msp

Authentic2 plugin to authenticate against mon.service-public.fr the french citizen portal.

Installation

  • Install with pip install authentic2-auth-msp

  • Add A2_MSP_ENABLED = True to your local_settings.py 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')
    MSP_VERIFY_CERTIFICATE = False
    

Test

When testing agains the test platform of mon.service-public.fr you must change the default endpoints URL in your local_settings.py file:: You must plug the application views in your urls.py file by adding this content:

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 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:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}

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

Release History

1.0.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
authentic2-auth-msp-1.0.5.tar.gz (193.9 kB) Copy SHA256 Checksum SHA256 Source Dec 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting