Skip to content

Support custom logout actions - #72

Open
hmpf wants to merge 1 commit into
adamcharnock:developfrom
hmpf:custom-logout-action
Open

Support custom logout actions#72
hmpf wants to merge 1 commit into
adamcharnock:developfrom
hmpf:custom-logout-action

Conversation

@hmpf

@hmpf hmpf commented Oct 8, 2020

Copy link
Copy Markdown

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.

@hmpf
hmpf force-pushed the custom-logout-action branch from c983b85 to e1d3417 Compare October 8, 2020 12:39
@hmpf
hmpf force-pushed the custom-logout-action branch from e1d3417 to c828e3c Compare October 9, 2020 11:20
@coveralls

Copy link
Copy Markdown

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
Copy Markdown
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