auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
638 stars 309 forks source link

Fixed missing endpoints for feature Organizations for Client Credentials changes #1046

Closed tusharpandey13 closed 2 weeks ago

tusharpandey13 commented 1 month ago

Changes

added 2 missing endpoints for the feature organization support for client credentials and respective tests:

DELETE /api/v2/organizations/{id}/client-grants/{grant_id}
POST /api/v2/organizations/{id}/client-grants

This PR also contains auth related changes for GA release of feature Organizations for Client Credentials as quoted:

The Auth SDKs may validate that the Organization sent in the request and the Organization returned in the tokens as claims match. These validation must be removed in case they exist, as the tokens may contain an org_id or org_name claim that are not present in the request.

Respective failing tests after removal of these checks have been removed.

References

Please look at #1033
API docs are not public yet.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Checklist

kushalshit27 commented 3 weeks ago

Please add SDK usage examples