Skip to content

[11.0][ADD] Auth SAML create users#113

Merged
OCA-git-bot merged 2 commits intoOCA:11.0from
savoirfairelinux:11.0-add-auth_saml_create_user
Nov 29, 2019
Merged

[11.0][ADD] Auth SAML create users#113
OCA-git-bot merged 2 commits intoOCA:11.0from
savoirfairelinux:11.0-add-auth_saml_create_user

Conversation

@eilst
Copy link
Copy Markdown
Member

@eilst eilst commented Jun 10, 2019

No description provided.

@eilst eilst changed the title [ADD] Auth SAML create users [11.0][ADD] Auth SAML create users Jun 10, 2019
@eilst
Copy link
Copy Markdown
Member Author

eilst commented Jun 10, 2019

I could add a docker-compose.yml with an idp configured with odoo as sp for functional tests. Is it a good idea?

@eilst
Copy link
Copy Markdown
Member Author

eilst commented Jun 28, 2019

Hey @max3903 @pedrobaeza @vincent-hatakeyama, I added this feature of giving the option to automatically create a user when he logs in with an idp. I base this pr on @vincent-hatakeyama, which fixes some important issues that exist on 11.0.

@eilst
Copy link
Copy Markdown
Member Author

eilst commented Jun 28, 2019

The runbot fails with when building the docker image
ERROR: /bin/sh: 1: mysql_config: not found
Traceback (most recent call last):...
File "/tmp/pip-install-lro6f39d/mysqlclient/setup_posix.py", line 29, in mysql_config
raise EnvironmentError("%s not found" % (_mysql_config_path,))
OSError: mysql_config not found
I think is something with the dockerfile, right?

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch from 78d1428 to a6ee3f0 Compare July 22, 2019 18:12
@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch from 59781bb to f89bf01 Compare July 23, 2019 15:43
Copy link
Copy Markdown

@wbeverly wbeverly left a comment

Choose a reason for hiding this comment

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

Approved!

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch 3 times, most recently from 88661df to aacbb98 Compare August 12, 2019 15:39
@eilst
Copy link
Copy Markdown
Member Author

eilst commented Aug 14, 2019

@bodedra @max3903 This module is ready with unit tests added. Could you merge it?

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown
Member

@bodedra bodedra left a comment

Choose a reason for hiding this comment

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

Add manor comments.

@oca-clabot
Copy link
Copy Markdown

Hey @eilst, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch from 118391d to bb20cd7 Compare August 21, 2019 19:01
@vincent-hatakeyama
Copy link
Copy Markdown
Contributor

Why is there a mix of LGPL and AGPL code in the module? It has always been AGPL, I don’t think LGPL can be added into it.

I also don’t think you can change license of the code like indicated in #113 (comment)

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch from bb20cd7 to dfeca4a Compare August 26, 2019 16:46
@eilst
Copy link
Copy Markdown
Member Author

eilst commented Aug 26, 2019

Why is there a mix of LGPL and AGPL code in the module? It has always been AGPL, I don’t think LGPL can be added into it.

I also don’t think you can change license of the code like indicated in #113 (comment)

Right, I rebased the branch with the correct license. In other projects that I work they use LGPL, so I did a mistake in some file headers.
I also read this in https://odoo-community.org/page/faq :
Why most of the OCA code base is AGPL ?
Because the AGPL license is the only license considering someone connecting to Odoo as a user. It protects companies from being locked in by their Odoo hosting provider. Finally, Odoo was fully AGPL for years and lots of devs has been released under the license by then.

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch from dfeca4a to 4196f32 Compare August 26, 2019 20:56
@eilst
Copy link
Copy Markdown
Member Author

eilst commented Aug 28, 2019

Now, everything should be fine. License, tests, code coverage, travis checks, corrections from comments, main feature. Could you merge it please @pedrobaeza?

@max3903
Copy link
Copy Markdown
Member

max3903 commented Sep 30, 2019

/ocabot merge

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 11.0-ocabot-merge-pr-113-by-max3903-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Sep 30, 2019
Signed-off-by max3903
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@max3903 your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-113-by-max3903-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 11.0-ocabot-merge-pr-113-by-moylop260-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 1, 2019
Signed-off-by moylop260
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@moylop260 your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-113-by-moylop260-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@moylop260
Copy link
Copy Markdown
Contributor

/ocabot merge

There is still a flaky error

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 11.0-ocabot-merge-pr-113-by-moylop260-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 1, 2019
Signed-off-by moylop260
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@moylop260 your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-113-by-moylop260-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@moylop260
Copy link
Copy Markdown
Contributor

/ocabot merge

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 11.0-ocabot-merge-pr-113-by-moylop260-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 12, 2019
Signed-off-by moylop260
@OCA-git-bot
Copy link
Copy Markdown
Contributor

@moylop260 your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-113-by-moylop260-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch 2 times, most recently from 2460b12 to 514b02b Compare November 8, 2019 17:40
@eilst
Copy link
Copy Markdown
Member Author

eilst commented Nov 8, 2019

/ocabot merge

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Sorry @eilst you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@eilst eilst force-pushed the 11.0-add-auth_saml_create_user branch from 3c83d1e to 6be137f Compare November 25, 2019 19:13
Luis added 2 commits November 25, 2019 15:05
[FIX] Flake8 & pylint

[FIX] manifest

[FIX] manifest

[UPD] auth_saml_create_user/models/auth_saml.py

Co-Authored-By: Rim BEN DHAOU <[email protected]>

Apply suggestions from code review

[ADD] Tests

[ADD] Tests

[ADD] Starting random password

[FIX Imports and pep8]

[UPD] Tests

[FIX] empty password

[FIX] exception not needed

[FIX] password not needed in write

[UPD] Create saml pass string

[ADD] test secret problem

[FIX] secret null

[ADD]tests: teradown method

[FIX] not need teardown

[FIX] manifest

[FIX] License

[FIX] Maintainers and development_status

Update __manifest__.py
@moylop260
Copy link
Copy Markdown
Contributor

@eilst
I just detected the red error of the CI.

Fixing in the following PR:

@moylop260
Copy link
Copy Markdown
Contributor

/ocabot merge

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 11.0-ocabot-merge-pr-113-by-moylop260-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Nov 29, 2019
Signed-off-by moylop260
@OCA-git-bot
Copy link
Copy Markdown
Contributor

It looks like something changed on 11.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 11.0-ocabot-merge-pr-113-by-moylop260-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Nov 29, 2019
Signed-off-by moylop260
@OCA-git-bot OCA-git-bot merged commit ad0b33c into OCA:11.0 Nov 29, 2019
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

SiesslPhillip pushed a commit to grueneerde/OCA-server-auth that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-auth (11.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.

10 participants