Skip to content

[12.0][MIG] auth_saml - #64

Merged
OCA-git-bot merged 12 commits into
OCA:12.0from
gurneyalex:12.0-mig_auth_saml
Mar 27, 2020
Merged

OCA-git-bot merged 12 commits into
OCA:12.0from
gurneyalex:12.0-mig_auth_saml

Conversation

@gurneyalex

Copy link
Copy Markdown
Member

No description provided.

@gurneyalex gurneyalex changed the title 12.0 mig auth saml [12.0][MIG] auth_saml Dec 11, 2018
@pedrobaeza pedrobaeza added this to the 12.0 milestone Dec 11, 2018
@OCA-git-bot OCA-git-bot mentioned this pull request Dec 11, 2018
19 tasks
@pedrobaeza

Copy link
Copy Markdown
Member

@probabble @alexey-pelykh you can now review this one.

@gurneyalex

Copy link
Copy Markdown
Member Author

caution: PR is hot from the oven, and not tested yet with a real SAML server. The code installs, the views display AFAICT. I'll be testing soon to assert if this works, but I need to get my hands on my customer's sysadmin 😸 In the meanwhile if you are able to test this in real, I'll be more than happy

@blop

blop commented Mar 6, 2019

Copy link
Copy Markdown

Testing the auth_saml in v12 :)

@blop

blop commented Mar 8, 2019

Copy link
Copy Markdown

Have anyone succeeded in making this module work on a v12 ?

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of things to fix/improve.

Also, rebase to fix conflicts please.

Thanks for your contribution!

Comment thread auth_saml/LICENSE Outdated
Comment thread auth_saml/README.rst
Comment thread auth_saml/__manifest__.py Outdated
Comment thread auth_saml/controllers/main.py Outdated
Comment thread auth_saml/controllers/main.py Outdated
Comment thread auth_saml/tests/test_auth_saml.py Outdated
Comment thread auth_saml/tests/util/odoo_tests.py Outdated
Comment thread auth_saml/tests/util/singleton.py Outdated
Comment thread auth_saml/tests/util/uuidgen.py Outdated
Comment thread auth_saml/views/auth_saml.xml Outdated

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of things to fix/improve.

Also:

Thanks for your contribution!

max3903 and others added 11 commits March 19, 2020 13:51
The following line of code for 11.0:
 - https://github.com/odoo/odoo/blob/52d6f0e3ee90874fc93fec9cdff74ec71d3b991f/addons/auth_oauth/controllers/main.py#L69

is assigning the key "auth_link" for "list_providers" method.

The following template is expecting this key:
 - https://github.com/odoo/odoo/blob/52d6f0e3ee90874fc93fec9cdff74ec71d3b991f/addons/auth_oauth/views/auth_oauth_templates.xml#L5

So, it raise a KeyError compiling "template_auth_oauth_providers_N"

This change is fixing adding that expected key in order to avoid this KeyError
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-11.0/server-auth-11.0-auth_saml
Translate-URL: https://translation.odoo-community.org/projects/server-auth-11-0/server-auth-11-0-auth_saml/
[FIX] dependencies
add requirement on lasso

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I applied suggestions myself.

@Tecnativa TT22174

@yajo
yajo force-pushed the 12.0-mig_auth_saml branch from b9a6ae3 to a8d71a0 Compare March 19, 2020 14:11

@Tardo Tardo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! only few comments....

Comment thread auth_saml/controllers/main.py Outdated
Comment thread auth_saml/controllers/main.py
Comment thread auth_saml/controllers/main.py Outdated
Comment thread auth_saml/controllers/main.py Outdated
Comment thread auth_saml/models/saml_token.py
Comment thread auth_saml/security/auth_saml.xml
@yajo
yajo force-pushed the 12.0-mig_auth_saml branch from 4ebd488 to b6da85c Compare March 20, 2020 10:45

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All attended.

Comment thread auth_saml/controllers/main.py
Comment thread auth_saml/models/saml_token.py
Comment thread auth_saml/security/auth_saml.xml
@yajo
yajo force-pushed the 12.0-mig_auth_saml branch 4 times, most recently from 0d47788 to afdb38a Compare March 26, 2020 11:51

@yajo yajo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now ready to merge.

@gurneyalex gurneyalex left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved --but can't self approve --

code review, no test

@pedrobaeza

Copy link
Copy Markdown
Member

@yajo, please check Travis

@yajo
yajo force-pushed the 12.0-mig_auth_saml branch from afdb38a to 668c2db Compare March 27, 2020 09:00
- Default behavior is now to allow password and SAML together.
  Otherwise, users could keep getting their passwords removed without warning.
- General cleanup.
- Remove relations to field `password_crypt` because in v12 the
  `password` field is always encrypted instead.

Co-Authored-By: Alexandre Díaz <alexandre.diaz@tecnativa.com>
@yajo
yajo force-pushed the 12.0-mig_auth_saml branch from 668c2db to f56b4bd Compare March 27, 2020 09:23
@yajo

yajo commented Mar 27, 2020

Copy link
Copy Markdown
Member

All green now.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-64-by-pedrobaeza-bump-no, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit e1c687e into OCA:12.0 Mar 27, 2020
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at d463522. Thanks a lot for contributing to OCA. ❤️

@NuevaIT-ext1

Copy link
Copy Markdown

i am new here and i found and error in auth_saml.py,line 50 lasso.Server
module 'lasso' has no attribute 'Server'

@eLBati

eLBati commented Nov 16, 2020

Copy link
Copy Markdown
Member

@NuevaIT-ext1 you need to install the "Free Liberty Alliance Implementation" https://lasso.entrouvert.org/

https://packages.ubuntu.com/focal/python3-lasso

SiesslPhillip pushed a commit to grueneerde/OCA-server-auth that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-auth (12.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.