Repository navigation
Conversation
…t and owner on client update
PUT /admin/clients/{id} forwarded the raw request payload to
ClientFactory::populate(), which assigned credentials when present.
Strip them in ClientApiController::curateUpdatePayload() so credentials
only change through ClientCredentialGenerator (create / regenerate), and
a string owner no longer causes a TypeError (HTTP 500).
Adds regression tests for the update endpoint and for secret regeneration.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
📘 OpenAPI / Swagger preview ➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-180/ This page is automatically updated on each push to this PR. |
ref: https://app.clickup.com/t/86bcwp5qp
Summary
ClientApiController::curateUpdatePayload()now stripsclient_id,client_secret,client_secret_expires_atandownerfrom the update payload.ClientCredentialGenerator(create / regenerate).ClientFactory::build()andCreateOAuth2TestClientare untouched.ownersent as a string no longer yields a 500TypeError.populate()is already validated (application_typeis checked inClientService::update(),resource_serverhas aninstanceofguard).Tests
testUpdateIgnoresCredentialsAndOwner(fails with 500 without the fix)testRegenerateClientSecretStillRotatesAndDispatchesEventtests/ClientApiTest.php: 23 tests OKPending
client_secretvia update.client_secret.Summary by CodeRabbit