diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..3fda0db0 --- /dev/null +++ b/NOTICE @@ -0,0 +1,2 @@ +ckanext-saml2auth +Copyright (c) 2020 Keitaro AB diff --git a/ckanext/__init__.py b/ckanext/__init__.py index ed48ed01..3a61b90c 100644 --- a/ckanext/__init__.py +++ b/ckanext/__init__.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 # this is a namespace package diff --git a/ckanext/saml2auth/__init__.py b/ckanext/saml2auth/__init__.py index e69de29b..e4f3f751 100644 --- a/ckanext/saml2auth/__init__.py +++ b/ckanext/saml2auth/__init__.py @@ -0,0 +1,14 @@ +""" +Copyright (c) 2020 Keitaro AB +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +""" diff --git a/ckanext/saml2auth/helpers.py b/ckanext/saml2auth/helpers.py index 5b8ad6dc..cab219cf 100644 --- a/ckanext/saml2auth/helpers.py +++ b/ckanext/saml2auth/helpers.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import logging import string diff --git a/ckanext/saml2auth/interfaces.py b/ckanext/saml2auth/interfaces.py index 32d8e4a0..fe600b51 100644 --- a/ckanext/saml2auth/interfaces.py +++ b/ckanext/saml2auth/interfaces.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + from ckan.plugins.interfaces import Interface diff --git a/ckanext/saml2auth/plugin.py b/ckanext/saml2auth/plugin.py index 22b59a1a..7bebd1c5 100644 --- a/ckanext/saml2auth/plugin.py +++ b/ckanext/saml2auth/plugin.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import ckan.plugins as plugins import ckan.plugins.toolkit as toolkit diff --git a/ckanext/saml2auth/spconfig.py b/ckanext/saml2auth/spconfig.py index 261f8509..0d0eae8b 100644 --- a/ckanext/saml2auth/spconfig.py +++ b/ckanext/saml2auth/spconfig.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 from saml2.saml import NAME_FORMAT_URI diff --git a/ckanext/saml2auth/templates/header.html b/ckanext/saml2auth/templates/header.html index ff68a176..6e8f3036 100644 --- a/ckanext/saml2auth/templates/header.html +++ b/ckanext/saml2auth/templates/header.html @@ -1,3 +1,20 @@ + + {% ckan_extends %} {% block header_account_notlogged %} diff --git a/ckanext/saml2auth/templates/user/snippets/login_form.html b/ckanext/saml2auth/templates/user/snippets/login_form.html index 174ee58e..c3b60a31 100644 --- a/ckanext/saml2auth/templates/user/snippets/login_form.html +++ b/ckanext/saml2auth/templates/user/snippets/login_form.html @@ -1,3 +1,20 @@ + + {% ckan_extends %} {% block login_button %} diff --git a/ckanext/saml2auth/tests/__init__.py b/ckanext/saml2auth/tests/__init__.py index e69de29b..e2f71bba 100644 --- a/ckanext/saml2auth/tests/__init__.py +++ b/ckanext/saml2auth/tests/__init__.py @@ -0,0 +1,17 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +""" diff --git a/ckanext/saml2auth/tests/test_blueprint.py b/ckanext/saml2auth/tests/test_blueprint.py index c8b72c14..b07b90b4 100644 --- a/ckanext/saml2auth/tests/test_blueprint.py +++ b/ckanext/saml2auth/tests/test_blueprint.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import os import pytest diff --git a/ckanext/saml2auth/tests/test_blueprint_get_request.py b/ckanext/saml2auth/tests/test_blueprint_get_request.py index f6801763..d084afa4 100644 --- a/ckanext/saml2auth/tests/test_blueprint_get_request.py +++ b/ckanext/saml2auth/tests/test_blueprint_get_request.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import base64 from datetime import datetime diff --git a/ckanext/saml2auth/tests/test_client.py b/ckanext/saml2auth/tests/test_client.py index 020425e1..6d74ef91 100644 --- a/ckanext/saml2auth/tests/test_client.py +++ b/ckanext/saml2auth/tests/test_client.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import os import pytest diff --git a/ckanext/saml2auth/tests/test_helpers.py b/ckanext/saml2auth/tests/test_helpers.py index 09190da8..35299908 100644 --- a/ckanext/saml2auth/tests/test_helpers.py +++ b/ckanext/saml2auth/tests/test_helpers.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import pytest diff --git a/ckanext/saml2auth/tests/test_interface.py b/ckanext/saml2auth/tests/test_interface.py index cfa2047d..681d1e21 100644 --- a/ckanext/saml2auth/tests/test_interface.py +++ b/ckanext/saml2auth/tests/test_interface.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + import os from collections import defaultdict diff --git a/ckanext/saml2auth/tests/test_spconfig.py b/ckanext/saml2auth/tests/test_spconfig.py index 0692de94..1facc8f9 100644 --- a/ckanext/saml2auth/tests/test_spconfig.py +++ b/ckanext/saml2auth/tests/test_spconfig.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import pytest diff --git a/ckanext/saml2auth/views/__init__.py b/ckanext/saml2auth/views/__init__.py index e69de29b..e2f71bba 100644 --- a/ckanext/saml2auth/views/__init__.py +++ b/ckanext/saml2auth/views/__init__.py @@ -0,0 +1,17 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +""" diff --git a/ckanext/saml2auth/views/saml2auth.py b/ckanext/saml2auth/views/saml2auth.py index a9f7b172..8a8faf32 100644 --- a/ckanext/saml2auth/views/saml2auth.py +++ b/ckanext/saml2auth/views/saml2auth.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # encoding: utf-8 import logging import copy diff --git a/conftest.py b/conftest.py index fae1fc4a..7a44f461 100644 --- a/conftest.py +++ b/conftest.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # -*- coding: utf-8 -*- pytest_plugins = [ diff --git a/setup.py b/setup.py index dfcf4d4e..63d10f11 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,20 @@ +""" +Copyright (c) 2020 Keitaro AB + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +""" + # -*- coding: utf-8 -*- # Always prefer setuptools over distutils from setuptools import setup, find_packages