summaryrefslogtreecommitdiffstats
path: root/README.rst
blob: 7cef87805fbcf18e683f351457c8b2e22dd57fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
===============================================
Mandaye - modular reverse proxy to authenticate
===============================================

Mandaye is a modular rewriting reverse proxy. Its main use is to add external
authentication systems to legacy application, i.e. SSO.
It dispatches HTTP requests to your applications and allow you to transform and
filter the request and the response.
Mandaye allows to couple your authentication provider with incompatible web
applications.

Copying
-------

This software copyrighted by Entr'ouvert and is licensed under the GNU AGPL
version 3 for distribution.

Features
--------

 * Mappers / dispatching::
   With Mandaye you can define your own mapping files. This allows you to call your own filters
   on the right HTTP requests. See the config part for more details.
 * Filters::
   You can define your own filters with Mandaye. This filter have access to the WSGI environment and
   could modify the HTTP requests and / or responses.
 * Local authentification::
   Mandaye provide a sql local authentification but you can also implement your own
   local authentification.
 * Distant authentification::
   At the moment Mandaye only support SAML 2.0 with password replay but we will provide
   SAML 2.0, OAuth and CAS support.


Installation
============

Dependencies
------------

The dependencies are in define into requirements.txt

Quick installation
------------------

Install at least Python >=2.6 and pip in your system.
For example with Debian or a Debian based distribution::

    sudo apt-get install python python-pip

Then install virtualenv ::

   pip install virtualenv

Create your virtualenv activate it::

    virtualenv mandaye
    source mandaye/bin/activate
    pip install -U pip

Install mandaye::

    $ tar xfvz mandaye-VERSION.tar.gz
    $ cd mandaye-VERSION
    $ pip install -r requirements.txt
    $ python setup.py install

If you want to develop use this command line::

    $ python setup.py develop


Quick Start
-----------

First step is to create a mandaye project::

    $ mandaye-admin.py --newproject PROJECT_NAME
    $ cd PROJECT_NAME

Install your Mandaye project::

    $ python setup.py install
    $ ./manager.py --createdb

Launch mandaye server::

    $ ./server.py

Use your own Mandaye configuration file::

    $ cp PROJECT_NAME/default-config.ini PROJECT_NAME/config.ini
    $ ./server.py --config=config.ini

server.py use gunicorn and gunicorn options (please read http://gunicorn.org/configure.html)

You could also use gunicorn.conf.py-sample (in the mandaye files)::

 $ ./server.py --config=config.ini -c PATH_TO_THE_FILE/gunicorn.conf.py

or::

 $ ./server.py --config=config.ini -c PATH_TO_THE_FILE/gunicorn.conf.py -b 0.0.0.0:4242

Upgrade Mandaye
---------------

You need to upgrade the update the repository and upgrade database::

 ~/new_mandaye $ python setup.py install
 ~/new_mandaye $ alembic upgrade head

Configuration
=============
TODO