Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of Zope root users #412

Merged
merged 7 commits into from
Nov 6, 2017
Merged

Fix handling of Zope root users #412

merged 7 commits into from
Nov 6, 2017

Conversation

buchi
Copy link
Member

@buchi buchi commented Oct 21, 2017

Another approach to fix #178, #127, #168
Obsoletes #378

  • The @login endpoints now checks for an installed JWT plugin in the acl_users folder where the logging in user has been found.
  • The JWT plugin is also installed in the Zope root acl_users folder.
  • Each JWT plugin uses a unique signing secret to prevent authenticating tokens issued by other JWT plugins.

@coveralls
Copy link

coveralls commented Oct 21, 2017

Coverage Status

Coverage increased (+0.03%) to 96.592% when pulling f2385cb on fix-root-login into 88a6779 on master.

@coveralls
Copy link

coveralls commented Oct 21, 2017

Coverage Status

Coverage decreased (-0.01%) to 96.549% when pulling 80aca9e on fix-root-login into 88a6779 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 96.549% when pulling 80aca9e on fix-root-login into 88a6779 on master.

@coveralls
Copy link

coveralls commented Oct 22, 2017

Coverage Status

Coverage decreased (-0.01%) to 96.549% when pulling 9d34fc2 on fix-root-login into 88a6779 on master.

@buchi
Copy link
Member Author

buchi commented Oct 23, 2017

@tisto @sneridagh This one is ready for a final review. Can you check if it fixes your issues. I'm pretty sure it fixes #127 and #168, but I'm not sure I understand #178 correctly.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 96.335% when pulling c856c81 on fix-root-login into 88a6779 on master.

@coveralls
Copy link

coveralls commented Oct 23, 2017

Coverage Status

Coverage increased (+0.03%) to 96.593% when pulling 573a17c on fix-root-login into 88a6779 on master.

@tisto tisto requested a review from sneridagh October 23, 2017 17:44
@tisto
Copy link
Sponsor Member

tisto commented Oct 23, 2017

@buchi thank you! We will look into it during this week.

@tisto tisto self-requested a review October 25, 2017 18:13
Copy link
Sponsor Member

@tisto tisto left a comment

Choose a reason for hiding this comment

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

LGTM. @sneridagh could you check tomorrow if that fixes our issues? If that's the case go ahead and merge.

@coveralls
Copy link

coveralls commented Oct 25, 2017

Coverage Status

Coverage increased (+0.03%) to 96.593% when pulling 1a94de9 on fix-root-login into 7fa16c9 on master.

@coveralls
Copy link

coveralls commented Oct 30, 2017

Coverage Status

Coverage increased (+0.03%) to 96.667% when pulling 1c939da on fix-root-login into 8a84333 on master.

@coveralls
Copy link

coveralls commented Nov 3, 2017

Coverage Status

Coverage increased (+0.03%) to 96.667% when pulling 32a1a7b on fix-root-login into c9be8e3 on master.

@tisto tisto added this to the 1.0b1 milestone Nov 4, 2017
Do not login users that are found in an acl_users folder without a JWT plugin.
Make sure every JWT PAS plugin uses a uniqe signing secret by appending it's
path to the secret.
@coveralls
Copy link

coveralls commented Nov 6, 2017

Coverage Status

Coverage increased (+0.03%) to 96.67% when pulling 290dc64 on fix-root-login into 3aaf76e on master.

@coveralls
Copy link

coveralls commented Nov 6, 2017

Coverage Status

Coverage increased (+0.03%) to 96.683% when pulling 037b85c on fix-root-login into 2b7ae2d on master.

Copy link
Member

@sneridagh sneridagh left a comment

Choose a reason for hiding this comment

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

LGTM too! I also think it fixes #127 and #168. However, I think that #178 will still happen.

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.

Dual authentication (from cookie and token) issues in production environments
4 participants