4 |
4 |
Installation modes
|
5 |
5 |
==================
|
6 |
6 |
|
7 |
|
The current version of Authentic 2 works with Python 2.7 and Django 1.5.
|
|
7 |
The current version of Authentic 2 works with Python 3 and Django 1.11 or 2.2.
|
8 |
8 |
|
9 |
9 |
Authentic 2 python installation script handles all the dependencies,
|
10 |
10 |
except Lasso, relying on the Setuptools and the pypi repository.
|
... | ... | |
12 |
12 |
To run Authentic 2 with SAML2 features, you need to install lasso >= 2.3.6,
|
13 |
13 |
see :ref:`install-lasso-ref`.
|
14 |
14 |
|
15 |
|
The other Authentic 2 dependencies are:
|
16 |
|
|
17 |
|
- Django>=1.7.6,<1.9
|
18 |
|
- requests>=2.
|
19 |
|
- django-model-utils>=2
|
20 |
|
- dnspython>=1.12
|
21 |
|
- django-select2>=4.3.0
|
22 |
|
- django-tables2>=1.0
|
23 |
|
- gadjo>=0.6
|
24 |
|
- django-import-export>=0.2.7,<=0.4.5
|
25 |
|
- djangorestframework>=3.3
|
26 |
|
- six>=1.9
|
27 |
|
- Markdown>=2.5
|
28 |
|
- python-ldap
|
29 |
|
|
30 |
15 |
Install Authentic 2:
|
31 |
16 |
|
32 |
17 |
- :ref:`install-pypi-ref`
|
... | ... | |
50 |
35 |
You can also install lasso from sources http://lasso.entrouvert.org/download
|
51 |
36 |
|
52 |
37 |
See the `Lasso website <http://lasso.entrouvert.org>`_ for installation details.
|
53 |
|
This is a quick installation example.
|
54 |
|
|
55 |
|
Install the following Lasso dependencies:
|
56 |
|
|
57 |
|
- autoconf
|
58 |
|
- automake
|
59 |
|
- autotools-dev
|
60 |
|
- libtool
|
61 |
|
- gtk-doc-tools
|
62 |
|
- zlib1g-dev
|
63 |
|
- libglib2.0-dev
|
64 |
|
- openssl-dev
|
65 |
|
- libxml2-dev
|
66 |
|
- libxmlsec1-dev
|
67 |
|
- python2.6-dev
|
68 |
|
- python-setuptools
|
69 |
|
|
70 |
|
Obtain Lasso::
|
71 |
|
|
72 |
|
$wget https://dev.entrouvert.org/lasso/lasso-2.3.6.tar.gz
|
73 |
|
$tar xzvf lasso-2.3.6.tar.gz
|
74 |
|
$cd lasso-2.3.6
|
75 |
|
$./autogen.sh
|
76 |
|
|
77 |
|
Be sure that the Python bindings is selected as follows::
|
78 |
|
|
79 |
|
=============
|
80 |
|
Configuration
|
81 |
|
=============
|
82 |
|
|
83 |
|
Main
|
84 |
|
----
|
85 |
|
|
86 |
|
Compiler: gcc
|
87 |
|
CFLAGS:
|
88 |
|
Install prefix: /usr/local
|
89 |
|
Debugging: no
|
90 |
|
Experimental ID-WSF: no
|
|
38 |
This is a quick installation example. Obtain Lasso::
|
91 |
39 |
|
92 |
|
Optionals builds
|
93 |
|
----------------
|
94 |
|
|
95 |
|
Available languages: java(4.6.1) python(2.7) perl(5.12.4)
|
96 |
|
|
97 |
|
Java binding: yes
|
98 |
|
Perl binding: yes
|
99 |
|
PHP 5 binding: no
|
100 |
|
Python binding: yes
|
101 |
|
|
102 |
|
C API references: yes
|
103 |
|
Tests suite: no
|
104 |
|
|
105 |
|
|
106 |
|
Now type 'make install' to install lasso.
|
|
40 |
$wget https://dev.entrouvert.org/lasso/lasso-2.6.1.tar.gz
|
|
41 |
$tar xzvf lasso-2.6.1.tar.gz
|
|
42 |
$cd lasso-2.6.1
|
|
43 |
$./autogen.sh
|
107 |
44 |
|
108 |
|
As indicated, build and install::
|
|
45 |
Build and install::
|
109 |
46 |
|
110 |
47 |
$make install
|
111 |
48 |
$ldconfig
|
112 |
49 |
|
113 |
50 |
Set the lasso python binding in you python path, e.g.::
|
114 |
51 |
|
115 |
|
$export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.6/site-packages"
|
|
52 |
$export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python3.8/site-packages"
|
116 |
53 |
|
117 |
54 |
Test trying to import Lasso::
|
118 |
55 |
|
... | ... | |
138 |
75 |
Validating models...
|
139 |
76 |
0 errors found
|
140 |
77 |
|
141 |
|
Django version 1.5, using settings 'authentic.settings'
|
|
78 |
Django version 2.2, using settings 'authentic.settings'
|
142 |
79 |
Development server is running at http://127.0.0.1:8000/
|
143 |
80 |
Quit the server with CONTROL-C.
|
144 |
81 |
|
... | ... | |
165 |
102 |
Validating models...
|
166 |
103 |
0 errors found
|
167 |
104 |
|
168 |
|
Django version 1.5, using settings 'authentic.settings'
|
|
105 |
Django version 2.2, using settings 'authentic.settings'
|
169 |
106 |
Development server is running at http://127.0.0.1:8000/
|
170 |
107 |
Quit the server with CONTROL-C.
|
171 |
108 |
|
... | ... | |
195 |
132 |
Validating models...
|
196 |
133 |
0 errors found
|
197 |
134 |
|
198 |
|
Django version 1.5, using settings 'authentic.settings'
|
|
135 |
Django version 2.2, using settings 'authentic.settings'
|
199 |
136 |
Development server is running at http://127.0.0.1:8000/
|
200 |
137 |
Quit the server with CONTROL-C.
|
201 |
138 |
|