Skip to content

Fix: Add NO_CONTENT and NOT_FOUND to GrantManagementAction - #4

Open
mharisjaved wants to merge 1 commit into
authlete:masterfrom
mharisjaved:fix/grant-management-missing-actions
Open

Fix: Add NO_CONTENT and NOT_FOUND to GrantManagementAction#4
mharisjaved wants to merge 1 commit into
authlete:masterfrom
mharisjaved:fix/grant-management-missing-actions

Conversation

@mharisjaved

Copy link
Copy Markdown

Summary

Authlete /api/gm may return action = "NO_CONTENT" (successful revoke; should map to HTTP 204)
and action = "NOT_FOUND" (grant not found / post-revoke; should map to HTTP 404).

The Python SDK enum lacked these values, causing deserialization failures (e.g., KeyError) when
GrantManagementResponse.from_json() receives these actions.

Changes

  • Add NO_CONTENT and NOT_FOUND to GrantManagementAction
  • Add regression tests: tests/dto/test_grant_management_response.py

Reference

The Java SDK defines these actions in GMResponse.Action (includes NO_CONTENT, NOT_FOUND):
https://authlete.github.io/authlete-java-common/com/authlete/common/dto/GMResponse.html

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant