Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auth_saml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
auth_saml
Commits
715ccc1ac22d
Commit
715ccc1ac22d
authored
8 years ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
Code formatting (flake8 valid)
parent
dbfb9451a23b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__openerp__.py
+2
-1
2 additions, 1 deletion
__openerp__.py
model/res_users.py
+9
-6
9 additions, 6 deletions
model/res_users.py
with
11 additions
and
7 deletions
__openerp__.py
+
2
−
1
View file @
715ccc1a
...
...
@@ -32,7 +32,8 @@
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.
This module is covered by the Gnu Affero General Public License, AGPLV3 or later
This module is covered by the GNU Affero General Public License, version 3 or
later.
The full source code and history can always be downloaded, modified
and redistributed from here:
...
...
This diff is collapsed.
Click to expand it.
model/res_users.py
+
9
−
6
View file @
715ccc1a
...
...
@@ -87,7 +87,7 @@
login
.
acceptSso
()
except
lasso
.
Error
as
error
:
raise
Exception
(
'
Invalid assertion : %s
'
%
lasso
.
strError
(
error
[
0
])
'
Invalid assertion : %s
'
%
lasso
.
strError
(
error
[
0
])
)
attrs
=
{}
...
...
@@ -142,10 +142,10 @@
elif
not
matching_value
and
matching_attribute
!=
"
subject.nameId
"
:
raise
Exception
(
"
Matching attribute %s not found in user attrs: %s
"
%
(
matching_attribute
,
attrs
,
)
"
Matching attribute %s not found in user attrs: %s
"
%
(
matching_attribute
,
attrs
,
)
)
validation
=
{
'
user_id
'
:
matching_value
}
...
...
@@ -239,7 +239,10 @@
token
)
except
(
openerp
.
exceptions
.
AccessDenied
,
passlib
.
exc
.
PasswordSizeError
):
except
(
openerp
.
exceptions
.
AccessDenied
,
passlib
.
exc
.
PasswordSizeError
,
):
# since normal auth did not succeed we now try to find if the user
# has an active token attached to his uid
res
=
token_osv
.
search
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment