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

Middleware deprovisioning API error #446

Open
phavekes opened this issue Nov 29, 2024 · 0 comments
Open

Middleware deprovisioning API error #446

phavekes opened this issue Nov 29, 2024 · 0 comments
Assignees

Comments

@phavekes
Copy link
Member

When deleting a non-existing user using the middleware deprovisioning API,

curl -X "DELETE" -u lifecycle:password -H 'Accept: application/json' "https://middleware/deprovision/urn:collab:person:org.nl:unknown-user" -s

the error returned is

{"errors":["TypeError: Argument 1 passed to Surfnet\\StepupMiddleware\\CommandHandlingBundle\\SensitiveData\\SensitiveData::withRecoveryTokenSecret() must implement interface Surfnet\\Stepup\\Identity\\Value\\RecoveryTokenIdentifier, null given, called in \/var\/www\/html\/src\/Surfnet\/Stepup\/Identity\/Event\/PhoneRecoveryTokenPossessionProvenEvent.php on line 136"]}

I would expect an error message indicating the personId is unknown, and "status":"ERROR"

@phavekes phavekes added this to Stepup Nov 29, 2024
@phavekes phavekes converted this from a draft issue Nov 29, 2024
@phavekes phavekes added the bug label Nov 29, 2024
@phavekes phavekes moved this from New to Backlog in Stepup Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants