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

Adding client credentials support #775

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

kishore7snehil
Copy link
Contributor

@kishore7snehil kishore7snehil commented Oct 16, 2024

Changes

  • Support for Default Organisation in clients

    a. Added new field default_organization to GET/PATCH endpoints /api/v2/clients/{id}
    b. Added new field default_organization to POST endpoints /api/v2/clients/

  • Support query param q for GET /api/v2/clients

    a. q=client_grant.organization_id:org_<uniq_id>
    b. q=client_grant.allow_any_organization:true

  • Support query param grant_ids for GET /api/v2/organizations/{org_id}/client-grants

  • Support query param identifiers for GET /api/v2/resource-servers

References

Management API Documentation
Internal Reference

Testing

Added test cases for testing above end-points.
Tested the implementation manually according to this internal document

  • This change adds unit test coverage

  • [] This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Contributor Checklist

@kishore7snehil kishore7snehil requested a review from a team as a code owner October 16, 2024 12:38
Copy link
Member

@evansims evansims left a comment

Choose a reason for hiding this comment

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

Two minor suggestions, but otherwise LGTM! Great work, and well done on those tests.

src/Contract/API/Management/OrganizationsInterface.php Outdated Show resolved Hide resolved
src/API/Management/Organizations.php Outdated Show resolved Hide resolved
@kishore7snehil kishore7snehil force-pushed the feature/adding_client_credentials branch from af015cf to 912806d Compare November 4, 2024 15:31
@kishore7snehil kishore7snehil dismissed evansims’s stale review November 5, 2024 08:45

The suggested changes are incorporated.

@kishore7snehil kishore7snehil merged commit a16a81d into main Nov 5, 2024
22 checks passed
@kishore7snehil kishore7snehil deleted the feature/adding_client_credentials branch November 5, 2024 08:45
@kishore7snehil kishore7snehil mentioned this pull request Nov 5, 2024
kishore7snehil added a commit that referenced this pull request Nov 7, 2024
### Added

- Adding client credentials support
[\#775](#775)
([kishore7snehil](https://github.com/kishore7snehil))

- Adding Support For CYOK
[\#779](#779)
([kishore7snehil](https://github.com/kishore7snehil))

### Fixed

- fix jobs test fail
[\#773](#773)
([yasuaki640](https://github.com/ramonschriks))
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.

3 participants