OpenConext / OpenConext/Stepup-Middleware
Recreate deprovidioned users on login
Open
@pablothedude is already working on this.
Since Jan 23, 2025.
deprovisioning
middleware
- Dominant language
- PHP
- Stars
- 3
- Forks
- 2
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.