Skip to content

Recreate deprovidioned users on login #525

Description

@phavekes

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.

Activity

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

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions