auth0 / go-auth0

Go SDK for the Auth0 Management API.
https://auth0.com
MIT License
135 stars 54 forks source link

Add Support for Self Service Profiles #431

Closed duedares-rvj closed 2 months ago

duedares-rvj commented 2 months ago

πŸ”§ Changes

Support for CRUD operations to the Self-Service Profile on Management APIs.

  1. POST /api/v2/self-service-profiles
  2. GET /api/v2/self-service-profiles
  3. GET /api/v2/self-service-profiles/{id}
  4. PATCH /api/v2/self-service-profiles/{id}
  5. DELETE /api/v2/self-service-profiles/{id}
  6. POST /api/v2/self-service-profiles/{id}/sso-ticket

πŸ“š References

Create a self-service profile Retrieve self-service profiles Retrieve a self-service profile by id Update a self-service profile Delete a self-service profile by id Create an sso-access ticket to initiate the self service sso flow

πŸ”¬ Testing

Added relevant test cases for all the endpoints to ensure functionality is as expected: All created resources are cleaned up after the assertions are completed.

Management Package

πŸ“ Checklist

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.64%. Comparing base (921144d) to head (e7d0685).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #431 +/- ## ========================================== + Coverage 95.60% 95.64% +0.04% ========================================== Files 47 48 +1 Lines 8006 8081 +75 ========================================== + Hits 7654 7729 +75 Misses 235 235 Partials 117 117 ```

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