nextcloud / nextcloud/server

Add context to login hooks

Open
#9,757 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: authentication
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Right now we have pre/post login hooks that are emitted.

However there is no context to those. It could be a login via the web. it could be a login via an apptoken etc.

Extending the current hooks. Or introducing a new event would allow apps to react to different kind of logins.

CC: @ChristophWurst

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where the existing pre-login and post-login hooks are emitted and how current listeners consume them. Clarify whether those hooks should gain context or a new event should be introduced, then define completion around distinguishing web logins from app-token logins with coverage for the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.