22 these badges work. The necessary Travis and Coverage config files have been
33 generated for you.
44
5- .. image :: https://travis-ci.org/duskobogdanovski /ckanext-saml2auth.svg?branch=master
6- :target: https://travis-ci.org/duskobogdanovski /ckanext-saml2auth
5+ .. image :: https://travis-ci.com/keitaroinc /ckanext-saml2auth.svg?branch=initial-implementation
6+ :target: https://travis-ci.com/keitaroinc /ckanext-saml2auth
77
8- .. image :: https://coveralls.io/repos/duskobogdanovski/ ckanext-saml2auth/badge.svg
9- :target: https://coveralls.io/r/duskobogdanovski /ckanext-saml2auth
8+ .. image :: https://coveralls.io/repos/github/keitaroinc/ ckanext-saml2auth/badge.svg?branch=initial-implementation
9+ :target: https://coveralls.io/github/keitaroinc /ckanext-saml2auth?branch=initial-implementation
1010
11- .. image :: https://img.shields.io/pypi/v/ckanext-saml2auth.svg
12- :target: https://pypi.org/project/ckanext-saml2auth/
13- :alt: Latest Version
1411
15- .. image :: https://img.shields.io/pypi/pyversions/ckanext-saml2auth.svg
16- :target: https://pypi.org/project/ckanext-saml2auth/
17- :alt: Supported Python versions
1812
19- .. image :: https://img.shields.io/pypi/status/ckanext-saml2auth.svg
20- :target: https://pypi.org/project/ckanext-saml2auth/
21- :alt: Development Status
2213
23- .. image :: https://img.shields.io/pypi/l/ckanext-saml2auth.svg
24- :target: https://pypi.org/project/ckanext-saml2auth/
25- :alt: License
26-
27- =============
14+ ==================
2815ckanext-saml2auth
29- =============
16+ ==================
3017
3118.. Put a description of your extension here:
3219 What does it do? What features does it have?
@@ -37,8 +24,7 @@ ckanext-saml2auth
3724Requirements
3825------------
3926
40- For example, you might want to mention here which versions of CKAN this
41- extension works with.
27+ This extension works with CKAN 2.9+.
4228
4329
4430------------
@@ -51,19 +37,29 @@ Installation
5137
5238 To install ckanext-saml2auth:
5339
54- 1. Activate your CKAN virtual environment, for example::
40+ 1. Install the required packages::
41+
42+ sudo apt install xmlsec1
43+
44+
45+ 2. Activate your CKAN virtual environment, for example::
5546
5647 . /usr/lib/ckan/default/bin/activate
5748
58- 2 . Install the ckanext-saml2auth Python package into your virtual environment::
49+ 3 . Install the ckanext-saml2auth Python package into your virtual environment::
5950
6051 pip install ckanext-saml2auth
6152
62- 3. Add ``saml2auth `` to the ``ckan.plugins `` setting in your CKAN
53+
54+ 4. Install the python modules required by the extension (adjusting the path according to where ckanext-saml2auth was installed in the previous step)::
55+
56+ pip install -r requirements.txt
57+
58+ 5. Add ``saml2auth `` to the ``ckan.plugins `` setting in your CKAN
6359 config file (by default the config file is located at
6460 ``/etc/ckan/default/ckan.ini ``).
6561
66- 4 . Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::
62+ 6 . Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::
6763
6864 sudo service apache2 reload
6965
@@ -72,13 +68,51 @@ To install ckanext-saml2auth:
7268Config settings
7369---------------
7470
75- None at present
71+ Required::
72+
73+ # Specifies the metadata location type
74+ # Options: local or remote
75+ ckanext.saml2auth.idp_metadata.location = remote
76+
77+ # Path to a local file accessible on the server the service runs on
78+ # Ignore this config if the idp metadata location is set to: remote
79+ ckanext.saml2auth.idp_metadata.local_path = /opt/metadata/idp.xml
80+
81+ # A remote URL serving aggregate metadata
82+ # Ignore this config if the idp metadata location is set to: local
83+ ckanext.saml2auth.idp_metadata.remote_url = https://kalmar2.org/simplesaml/module.php/aggregator/?id=kalmarcentral2&set=saml2
7684
77- .. Document any optional config settings here. For example::
85+ # Path to a local file accessible on the server the service runs on
86+ # Ignore this config if the idp metadata location is set to: local
87+ ckanext.saml2auth.idp_metadata.remote_cert = /opt/metadata/kalmar2.cert
7888
79- .. # The minimum number of hours to wait before re-checking a resource
80- # (optional, default: 24).
81- ckanext.saml2auth.some_setting = some_default_value
89+ # Corresponding SAML user field for firstname
90+ ckanext.saml2auth.user_firstname = firstname
91+
92+ # Corresponding SAML user field for lastname
93+ ckanext.saml2auth.user_lastname = lastname
94+
95+ # Corresponding SAML user field for email
96+ ckanext.saml2auth.user_email = email
97+
98+
99+ Optional::
100+
101+ # Configuration setting that enables CKAN's internal register/login functionality as well
102+ # Default: False
103+ ckanext.saml2auth.enable_ckan_internal_login = True
104+
105+ # List of email addresses from users that should be created as sysadmins (system administrators)
106+ ckanext.saml2auth.sysadmins_list = mail@domain.com mail2@domain.com mail3@domain.com
107+
108+ # Indicates that attributes that are not recognized (they are not configured in attribute-mapping),
109+ # will not be discarded.
110+ # Default: True
111+ ckanext.saml2auth.allow_unknown_attributes = False
112+
113+ # A list of string values that will be used to set the <NameIDFormat> element of the metadata of an entity.
114+ # Default: urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
115+ ckanext.saml2auth.sp.name_id_format = urn:oasis:names:tc:SAML:2.0:nameid-format:persistent urn:oasis:names:tc:SAML:2.0:nameid-format:transient
82116
83117
84118----------------------
@@ -88,6 +122,8 @@ Developer installation
88122To install ckanext-saml2auth for development, activate your CKAN virtualenv and
89123do::
90124
125+
126+ sudo apt install xmlsec1
91127 git clone https://github.com/duskobogdanovski/ckanext-saml2auth.git
92128 cd ckanext-saml2auth
93129 python setup.py develop
@@ -108,9 +144,9 @@ To run the tests and produce a coverage report, first make sure you have
108144 pytest --ckan-ini=test.ini --cov=ckanext.saml2auth
109145
110146
111- ----------------------------------------
147+ --------------------------------------------
112148Releasing a new version of ckanext-saml2auth
113- ----------------------------------------
149+ --------------------------------------------
114150
115151ckanext-saml2auth should be available on PyPI as https://pypi.org/project/ckanext-saml2auth.
116152To publish a new version to PyPI follow these steps:
0 commit comments