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

Support custom logout actions #72

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hmpf
Copy link

@hmpf hmpf commented Oct 8, 2020

So I've finally gotten around to setting things up!

Problem: this needs to be logged to the audit log, and the log for starting to impersonate (on login_as_user) needs to be different from the log for stopping to impersonate (on su_logout). This could also be solved by login_as_user sending a su-signal and su_logout sending an unsu-signal.

Also, #70 might be solved by adding a check that the user you su to is not a superuser in the custom login action, and not doing so in the custom logout action, which is also a problem I have: I don't want superusers to impersonate superusers. This should also fix my third problem: recursive su.

Might help in closing #70.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling c828e3c on hmpf:custom-logout-action into 856efc8 on adamcharnock:develop.

@PetrDlouhy
Copy link
Collaborator

@hmpf Could you please rebase this PR to the current develop in order to run the tests here in GitHub Actions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants