# HG changeset patch
# User Houzefa Abbasbhay <houzefa.abba@xcg-consulting.fr>
# Date 1465823735 -7200
#      Mon Jun 13 15:15:35 2016 +0200
# Branch odoo8
# Node ID 5603ce2ebeac7da63283fe880a2cccbe96eb95ba
# Parent  09287c17a75c251a299f07b757622055ec716a1b
Prefer "ensure_one" to a comment

diff --git a/model/auth_saml.py b/model/auth_saml.py
--- a/model/auth_saml.py
+++ b/model/auth_saml.py
@@ -43,8 +43,10 @@
     @api.multi
     def _get_auth_request(self, state):
         """build an authentication request and give it back to our client
-        WARNING: this method cannot be used for multiple ids
         """
+
+        self.ensure_one()
+
         login = self._get_lasso_for_provider()
 
         # ! -- this is the part that MUST be performed on each call and