File: idp.rst

package info (click to toggle)
python-pysaml2 7.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,604 kB
  • sloc: xml: 388,184; python: 66,155; makefile: 148; sh: 80
file content (41 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (3)
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
.. _example_idp:

An extremly simple example of a SAML2 identity provider.
========================================================

There are 2 example IDPs in the project's example directory:

* idp2 has a static definition of users:

  * user attributes are defined in idp_user.py
  * the password is defined in the PASSWD dict in idp.py

* idp2_repoze is using repoze.who middleware to perform authentication and attribute retrieval

Configuration
-------------
Entity configuration is described in "Configuration of pysaml2 entities"
Server parameters like host and port and various command line parameters are
defined in the main part of idp.py

Setup:
******

The folder [your path]/pysaml2/example/idp2 contains a file named idp_conf.py.example

Take the file named idp_conf.py.example and rename it idp_conf.py

Generate a metadata file based in the configuration file (idp_conf.py) by using the command::

    make_metadata.py idp_conf.py > idp.xml


Run IDP:
********

Open a Terminal::

    cd [your path]/pysaml2/example/idp2
    python idp.py idp_conf

Note that you should not have the .py extension on the idp_conf.py while running the program