Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
2d515e8
Initial import
faide Feb 25, 2014
f0d00eb
MASSIVE commit. Working POC. This is just a POC. We'll need a lot of …
faide Feb 27, 2014
8f24011
Now with proper request encoding!!! we will now test the signature test
faide Feb 27, 2014
5da4193
Fixed issue for database that does not have saml providers
faide Feb 27, 2014
d159ce6
[security] Fixed values
Feb 27, 2014
a43dc3a
Added a starting point rst documentation... Not finished YET.
faide Mar 11, 2014
aa92302
Fixed an information leak... This is an important update
faide Mar 13, 2014
932274a
Added css and body to the default values
faide Mar 13, 2014
144990c
Try to use a proper url redirect instead of just the barebone window.…
faide Mar 24, 2014
7f55f24
Sample local provider is now disabled by default to avoid update issu…
faide Mar 24, 2014
fc44b3b
Added a specific case for clients coming to the singin url without th…
faide Mar 24, 2014
1884750
Added French translation
Mar 31, 2014
f54879e
Bumped version to 1.0(stable)
Apr 4, 2014
ff13d1d
Added tag TAG_1.0 for changeset 0971293545c0
Apr 4, 2014
258cbf8
Bumped version to 1.0.1(dev)
Apr 4, 2014
9d3ffe9
Fixes #1
faide Apr 15, 2014
b3ba0e4
updated hgignore
May 6, 2014
ce97438
Made body editable
May 6, 2014
8062faf
1.1
May 6, 2014
bd5a2cd
Added tag TAG_1.1 for changeset 440c74a3b23e
May 6, 2014
0795dd4
1.1.1
May 6, 2014
c3848a8
Fixed missing module
May 15, 2014
d7befbf
1.2
May 15, 2014
f6e5ee9
Added tag TAG_1.2 for changeset e0aa862214f8
May 15, 2014
63494c6
dev version
May 15, 2014
1e0a21f
Add TODO for multi access
faide Oct 16, 2014
7615a71
New ignore pattern for pycharm projects
faide Nov 10, 2014
06b99fe
docstring
faide Nov 10, 2014
d532280
Tokens are now in their own table to avoid locks on res.users
faide Nov 10, 2014
c11d67d
Added #security rules, missing import and NEWS and README files
Nov 10, 2014
e5bd66b
Added #script to delete removed table column from DB
Nov 10, 2014
060d79b
Added tag TAG_2.0 for changeset ae9585f6103b
Nov 10, 2014
ce6533a
Renamed token.py into saml_token.py
Dec 2, 2014
df54b0d
Update and Add License (AGPL) and (XCG)
Jan 15, 2015
9af3e37
Improve README
Jan 16, 2015
1ab965c
Added tag TAG_2.1 for changeset 9dfc2bf569e4
faide Jan 28, 2015
b6cc783
Copyright update
houzefa-abba Mar 3, 2015
04552e8
Move files around
houzefa-abba Mar 3, 2015
2de4d32
Code formatting (flake8 valid)
houzefa-abba Mar 3, 2015
fb9dab3
Code formatting
houzefa-abba Mar 3, 2015
35f500b
Add some comments
houzefa-abba Mar 3, 2015
aeb5db5
Ensure no Odoo user posesses both an SAML user ID and an Odoo password
houzefa-abba Mar 3, 2015
cfd1cca
Script to clear passwords of Odoo users that already have an SAML use…
houzefa-abba Mar 3, 2015
f4ebdac
Clear out the user's password when setting an SAML user ID
houzefa-abba Mar 3, 2015
8497972
Setting to allow Odoo users to possess both an SAML ID and an Odoo pa…
houzefa-abba Mar 3, 2015
00dd1ee
Update French translations
houzefa-abba Mar 3, 2015
bffd42d
News
houzefa-abba Mar 3, 2015
4b8ce6d
Update to TAG_3.0
Mar 17, 2015
6573db9
Added tag TAG_3.0 for changeset f20470fdf0ef
Mar 17, 2015
95ecc08
Changed field description to be more precise
faide Jun 2, 2015
d1c0e55
WIP, porting to v8
faide Jun 4, 2015
c73f20a
Try to fix odoo8 error by adding missing uid. Also report allow admin…
vincent-hatakeyama Jun 4, 2015
35814be
Removed unused assets (those were only for version 7)
faide Jun 4, 2015
b38709b
Proper state handling and removed debug prints
faide Jun 4, 2015
42f1e6a
Fixed Version 8 problems (old API function signatures)
faide Jun 4, 2015
3d7c2d1
Fixed version 8 function signature
faide Jun 4, 2015
c3bf0cf
Fixed bad typo :)
faide Jun 4, 2015
cede5d2
First v8 API batch
faide Jun 4, 2015
23c658a
Porting to v8 API second round.
faide Jun 5, 2015
2d78354
Added more explicit information about LICENSE and download links to t…
faide Jun 5, 2015
3bd9cc2
Added a small header to LICENSE file
faide Jun 5, 2015
a872c13
Added a CONTRIBUTORS file with all our committers
faide Jun 5, 2015
a6ff23e
Finalized porting to the new v8 API for the whole module
faide Jun 5, 2015
0e26022
Adding python deps to __openerp__.py to make sure lasso is present in…
faide Jun 5, 2015
646cd97
Code formatting (flake8 valid) and touch-ups before submitting to OCA
houzefa-abba Oct 19, 2015
6a1de9e
Remove mercurial files
houzefa-abba Oct 19, 2015
be5ac75
Improve the README & the manifest
houzefa-abba Oct 19, 2015
54432a9
auth_saml: Code formatting (encoding decl & class names)
houzefa-abba Oct 19, 2015
0e92a95
Add python-lasso into the travis file
houzefa-abba Oct 19, 2015
6821d7e
auth_saml: Improve the README, add an HTML descr and misc things
houzefa-abba Oct 19, 2015
6b41ee6
auth_saml: Relative imports
houzefa-abba Oct 20, 2015
a30690b
auth_saml: model/ -> models/
houzefa-abba Oct 20, 2015
f79f1d4
Require sudo in the travis file until <https://github.com/travis-ci/a…
houzefa-abba Oct 20, 2015
9ecdfd9
Now that python-lasso has been whitelisted, revert "Require sudo in t…
houzefa-abba Oct 26, 2015
2dc67ae
Temporarily revert some changes to import updates
houzefa-abba Aug 22, 2016
bf7bf66
docstrings
faide Feb 10, 2016
ff3d516
implement real attribute matching instead of using subject.nameId.con…
faide Feb 10, 2016
e5e9730
Remove a trailing comma introduced during the grafting of rev d67d84c…
houzefa-abba Mar 2, 2016
e7845f4
Also clear out the "password_crypt" field when clearing out "password"
houzefa-abba May 2, 2016
c60b8e4
Security: Let users in the "access rights" group see SAML providers
houzefa-abba May 30, 2016
1d017d5
Don't add different states twice to the same URL
houzefa-abba Jun 13, 2016
e31de2a
Don't clear out the pass of the Odoo admin.
houzefa-abba Jun 13, 2016
9895008
Add a missing import
houzefa-abba Jun 13, 2016
0c618ed
Code formatting (flake8 valid)
houzefa-abba Jun 13, 2016
cfd806d
Don't bork other auth addons when using this one
houzefa-abba Jun 13, 2016
38bb5f7
Odoo 8 style override of "res.users::check_credentials"
houzefa-abba Jun 13, 2016
3371d44
Remove an old comment
houzefa-abba Jun 13, 2016
1d6d8f2
Prefer "ensure_one" to a comment
houzefa-abba Jun 13, 2016
e0c9d12
Various changes done while submitting to the OCA
houzefa-abba Jun 13, 2016
e2eb8b2
model/ -> models/
houzefa-abba Jun 13, 2016
93d6fe4
Test scaffold (nothing yet)
houzefa-abba Jun 13, 2016
209a521
Sphinx doc
houzefa-abba Jun 13, 2016
cff5f27
Code formatting (flake8 valid)
houzefa-abba Aug 23, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ addons:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- python-lasso # Used by the "auth_saml" addon.

env:
global:
Expand Down
661 changes: 661 additions & 0 deletions auth_saml/LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions auth_saml/NEWS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
next
====

* Checks to ensure no Odoo user with SAML also has an Odoo password.
* Setting to disable that rule.


2.0
===

* SAML tokens are not stored in res_users anymore to avoid locks on that table.
117 changes: 117 additions & 0 deletions auth_saml/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

====================
SAML2 authentication
====================

Let users log into Odoo via an SAML2 provider.

This module allows to deport the management of users and passwords in an
external authentication system to provide SSO functionality (Single Sign On)
between Odoo and other applications of your ecosystem.


WARNING: this module requires auth_crypt. This is because you still have the
option if not recommended to allow users to have a password stored in odoo
at the same time as having a SALM provider and id.


Benefits
========

* Reducing the time spent typing different passwords for different accounts.

* Reducing the time spent in IT support for password oversights.

* Centralizing authentication systems.

* Securing all input levels / exit / access to multiple systems without
prompting users.

* The centralization of access control information for compliance testing to
different standards.


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

Install as you would install any Odoo addon.

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

This addon requires `lasso`_.

.. _lasso: http://lasso.entrouvert.org


Configuration
=============

There are SAML-related settings in Configuration > General settings.


Usage
=====

To use this module, you need an IDP server, properly set up. Go through the
"Getting started" section for more information.


Demo
====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/8.0


Known issues / Roadmap
======================

None for now.


Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/
{project_repo}/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
{project_repo}/issues/new?body=module:%20
{module_name}%0Aversion:%20
{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Contributors
------------

In order of appearance:

- Florent Aide, <florent.aide@xcg-consulting.fr>
- Vincent Hatakeyama, <vincent.hatakeyama@xcg-consulting.fr>
- Alexandre Brun, <alexandre.brun@xcg-consulting.fr>
- Jeremy Co Kim Len, <jeremy.cokimlen@vinci-concessions.com>
- Houzéfa Abbasbhay <houzefa.abba@xcg-consulting.fr>


Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
4 changes: 4 additions & 0 deletions auth_saml/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# flake8: noqa

from . import controllers
from . import models
53 changes: 53 additions & 0 deletions auth_saml/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Saml2 Authentication for Odoo
# Copyright (C) 2010-2016 XCG Consulting <http://odoo.consulting>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################


{
'name': 'Saml2 Authentication',
'version': '3.0',
'category': 'Tools',
'author': 'XCG Consulting, Odoo Community Association (OCA)',
'maintainer': 'XCG Consulting',
'website': 'http://odoo.consulting',
'license': 'AGPL-3',
'depends': [
'base',
'base_setup',
'web',
'auth_crypt',
],

'data': [
'data/auth_saml.xml',
'data/ir_config_parameter.xml',

'security/ir.model.access.csv',

'views/auth_saml.xml',
'views/base_settings.xml',
'views/res_users.xml',
],
'installable': True,
'auto_install': False,
'external_dependencies': {
'python': ['lasso'],
},
}
3 changes: 3 additions & 0 deletions auth_saml/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# flake8: noqa

from . import main
Loading