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

Provide event hooks to authentication events #11431

Closed
nexus186 opened this issue Sep 28, 2018 · 2 comments
Closed

Provide event hooks to authentication events #11431

nexus186 opened this issue Sep 28, 2018 · 2 comments

Comments

@nexus186
Copy link

nexus186 commented Sep 28, 2018

Please provide a way to run a custom script (bash etc) when a specific event occurs (such as run a bash script when an invalid login occurs). This would be much better than polling the next cloud log file (for an example, if you want to send an SMS through a web service based on some log event when don't have access to SMTP).

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #34 (Provide a Docker container), #5368 (GUI bug on authentication required), #6600 (shared folder asks for authentication), #7908 (authentication problem through the browser!!), and #5282 (Provide Calendar API).

@MorrisJobke
Copy link
Member

You could write an app, that does the triggering for you. We have a lot of events inside PHP: https://docs.nextcloud.com/server/14/developer_manual/app/hooks.html

You could then based on this trigger whatever code you want to run. We will not integrate this into the server as it is a super special use case and can be accomplished by an app. I hope this is okay for you, because otherwise we need to add a lot of specific code and config for a small feature that can already be accomplished in a fully supported way. See the admin_audit app for an example on how to listen to events and trigger stuff then: https://github.com/nextcloud/server/tree/master/apps/admin_audit

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

No branches or pull requests

3 participants