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

Administrators can disable a client #747

Merged
merged 13 commits into from
May 24, 2024
Merged

Administrators can disable a client #747

merged 13 commits into from
May 24, 2024

Conversation

enricovianello
Copy link
Member

Replaces #715

* Add API and service methods to change client status
* Add new columns for client status
* Set status as active for new client
* Add suspended label next to client name
* Add column status_changed_by to client_details
* Make client suspension details available to client owner
Copy link
Member Author

@enricovianello enricovianello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest a refactoring that aligns the new functionality with the others in "FindAccount" API. Mainly by returning ScimUser and splitting the status endpoint in two enable|disable endpoints so the status is not necessary in body, just the clientId.

Copy link
Member Author

@enricovianello enricovianello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd move the authz checks at controller level. In the cases users is not allowed to restore a disabled client the exception and a FORBIDDEN response could be returned.

Copy link
Member Author

@enricovianello enricovianello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question about status_changed_on default value.
I think after this it's all ok!

Copy link

sonarcloud bot commented May 24, 2024

@enricovianello enricovianello merged commit b0fe8a1 into develop May 24, 2024
4 checks passed
@enricovianello enricovianello deleted the issue-705 branch May 24, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

IAM admins should be able to suspend clients
2 participants