Recreate deprovidioned users on login

Open
#525 0 comments 0 reactions 1 assignee View on GitHub

@pablothedude is already working on this.

Since Jan 23, 2025.

Assessment

This issue has not been assessed yet.

Description

deprovisioning middleware

When a user had been deprovisioned trough the lifecycle API, he might return later, and get the same collabpersonID.
At the moment, this causes an error:

{"message":"Exception occurred while processing command \"Surfnet\\StepupMiddleware\\CommandHandlingBundle\\Identity\\Command\\UpdateIdentityCommand[e4731040-7b60-40d4-aca9-634861466db8]\": \"Operation on this Identity is not allowed: it has been forgotten\", rolling back transaction","context":{"exception":{"class":"Surfnet\\Stepup\\Exception\\DomainException","message":"Operation on this Identity is not allowed: it has been forgotten","code":0,"file":"/var/www/html/src/Surfnet/Stepup/Identity/Identity.php:1446"}},"level":400,"level_name":"ERROR","channel":"app","datetime":"2025-01-23T15:18:54+01:00","extra":{"art":"24787","server":"middleware.test2.surfconext.nl","application":"middleware","request_id":"8bffc46f51882904a0f39a71d9d6e54b"}}
{"message":"Transaction for command \"Surfnet\\StepupMiddleware\\CommandHandlingBundle\\Identity\\Command\\UpdateIdentityCommand[e4731040-7b60-40d4-aca9-634861466db8]\" rolled back, re-throwing exception","context":{},"level":100,"level_name":"DEBUG","channel":"app","datetime":"2025-01-23T15:18:54+01:00","extra":{"server":"middleware.test2.surfconext.nl","application":"middleware","request_id":"8bffc46f51882904a0f39a71d9d6e54b"}}

If a user returns after being forgotten, we should recreate the user as if it was a new user.

Dominant language
PHP
Stars
3
Forks
3
Avg merge
6d 7h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from OpenConext/Stepup-Middleware

All issues in OpenConext/Stepup-Middleware

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.