auth0 / auth0-deploy-cli

The Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configuration. It integrates into your development workflows as a standalone CLI or as a node module.
MIT License
248 stars 154 forks source link

Client Credentials (M2M) support for Organizations #975

Closed kushalshit27 closed 2 weeks ago

kushalshit27 commented 2 weeks ago

πŸ”§ Changes

Machine-to-Machine (M2M) Client Credentials Access for Organizations

:pushpin: clientGrants resource :

clientGrants:
  - client_id: org m2m app
    audience: <url>
+   allow_any_organization: true
+   organization_usage: require
    scope:
      - <scope 1>
      - <scope 2>

Note:

:pushpin: organizations resource :

organizations:
  - name: new-org
+    client_grants:
+      - client_id: org m2m app 

Note:

πŸ“š References

https://auth0.com/docs/manage-users/organizations/organizations-for-m2m-applications

πŸ”¬ Testing

πŸ“ Checklist

codecov-commenter commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 58.82353% with 21 lines in your changes missing coverage. Please review.

Project coverage is 80.18%. Comparing base (d9aaca2) to head (f7c79a7).

Files with missing lines Patch % Lines
src/tools/auth0/handlers/organizations.ts 58.82% 14 Missing and 7 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #975 +/- ## ========================================== - Coverage 80.49% 80.18% -0.32% ========================================== Files 113 113 Lines 3825 3871 +46 Branches 761 768 +7 ========================================== + Hits 3079 3104 +25 - Misses 460 474 +14 - Partials 286 293 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.