Skip to content

[12.0][mig] auth_totp - #114

Closed
fkantelberg wants to merge 23 commits into
OCA:12.0from
initOS:12.0_mig_auth_totp
Closed

fkantelberg wants to merge 23 commits into
OCA:12.0from
initOS:12.0_mig_auth_totp

Conversation

@fkantelberg

@fkantelberg fkantelberg commented Jun 22, 2019

Copy link
Copy Markdown
Member

Hi,

I migrated and tested it with different users. Seems to be stable so far despite the changes in odoo 12.

obulkin and others added 21 commits May 27, 2019 18:11
…sers model * Overload check_credentials in res.users to allow for logins using an MFA login token rather than a password * Add the res.users.authenticator and res.users.device models, along with appropriate ACLs and record rules * Add the res.users.authenticator.create wizard model and an associated view to facilitate creation of res.users.authenticator records * Extend base.view_users_form_simple_modif with fields needed to manage the new functionality * Add an AuthTotp controller that inherits from Home in the web module and an associated view to introduce MFA logic to the login process * Add several new exception classes that inherit from AccessDenied
…es to odoo * Bump version * Add pyotp back to requirements
…* Replace LasLabs logo with OCA one * Overload _build_model in res.users model to add two MFA fields to the model class's list of self-writeable fields, allowing these fields to be edited by users without admin permissions for their own record * Update view_users_form_simple_modif and the unit tests in the module based on the self-writeable field change
…ew for admin access * Update record rules to give admins read/unlink access to MFA authenticators
…thenticator.create wizard model to properly support deletion of users who have just created an MFA authenticator
…ying the decorator on one of the routes and updating the login_success request parameter as needed
…gic that checks for the Firefox edge case where redirect_with_hash returns a Response object rather than a string * Add test case for this scenario
…c to prevent RPC authentication for users with MFA enabled and add support for multiple simultaneous MFA sessions * Switch trusted device cookies from using the DB secret to user-level secret keys, thereby increasing security * Remove MFA login tokens and trusted device model, which are now redundant * Add migration logic that generates a trusted device cookie key for every user with MFA enabled and cleans up device model ir records to prevent warnings * Update unit tests and remainder of module accordingly
… users with MFA enabled even when those users have recently logged in
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-auth-11.0/server-auth-11.0-auth_totp
Translate-URL: https://translation.odoo-community.org/projects/server-auth-11-0/server-auth-11-0-auth_totp/
@fkantelberg fkantelberg mentioned this pull request Jun 22, 2019
19 tasks
@fkantelberg fkantelberg changed the title 12.0 mig auth totp [12.0][mig] auth_totp Jun 22, 2019
@pedrobaeza pedrobaeza added this to the 12.0 milestone Jun 23, 2019

@tbaden tbaden 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.

thanks for the work 👍
I did a code review: LGTM

@yweng8111 yweng8111 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice Job

@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). 🤖

@cornucopiaa

cornucopiaa commented Aug 9, 2019

Copy link
Copy Markdown

@lmignon @pedrobaeza can you guys merge this one please, really looking forward to having TOTP in Odoo 12

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Rebased to 12.0-ocabot-merge-pr-114-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Aug 9, 2019
Signed-off-by pedrobaeza
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

PS: Don't worry if GitHub says there are unmerged commits: it is due to a rebase before merge. All commits of this PR have been merged into 12.0.

@cornucopiaa

Copy link
Copy Markdown

thank you @pedrobaeza !

@fkantelberg

Copy link
Copy Markdown
Member Author

thank you @Nobd @pedrobaeza

sonhd91 pushed a commit to camptocamp/server-auth that referenced this pull request Jul 29, 2024
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.