-
Notifications
You must be signed in to change notification settings - Fork 211
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
[SDK-2435] Add Organizations support to Management API Client #483
Conversation
…ting user organization memberships.
…ement Signed-off-by: Evan Sims <evan.sims@auth0.com> # Conflicts: # README.md # src/API/Authentication.php # src/Auth0.php # src/Helpers/Tokens/IdTokenVerifier.php
I can see the integration tests only run on the master branch, were you able to run them manually as part of this work and if so presumably they were ok? |
@stevehobbsdev Yup! Just pushed a few small tweaks, but it's all green there
Edit: I should note this is passing on my personal development tenant; the SDKs integration testing tenant will need to have the New Universal Login Page enabled so we can enable Organizations on clients over there. |
Just noticed I had overlooked passing the new |
Added integrations tests for invitations as well, since I figured out what was blocking me on those. That's everything I had on my todo list here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good, but noticed that one of the doc comments looks to be incorrect.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This pull request adds support for Organizations to the Management API Client:
Management::organizations()
singleton provider.Users::getOrganizations()
method for retrieving organizations user is a member of.Auth0\SDK\API\Management\Tickets
class:Tickets::createEmailVerificationTicket()
now supports passingorganization_id
param. Fixedclient_id
not getting passed properly.Tickets::createPasswordChangeTicket()
now has an optionalorganization_id
argument.Tickets::createPasswordChangeTicketByEmail()
now has an optionalorganization_id
argument.Tickets::createPasswordChangeTicketRaw()
now has an optionalorganization_id
argument.Auth0\SDK\API\Management\Jobs
class:Jobs::sendVerificationEmail()
now supports passingorganization_id
param.Auth0\SDK\API\Management\Organizations
class:Organizations::create()
creates a new organization.Organizations::update()
makes changes to an existing organization.Organizations::delete()
deletes an organization.Organizations::getAll()
returns an array of all created organizations. Pagination supported.Organizations::get()
returns details about an existing organization, by itsid
.Organizations::getByName()
returns details about an existing organization, by itsname
.Organizations::getEnabledConnections()
returns an array of all enabled connections. Pagination supported.Organizations::getEnabledConnection()
returns details about an enabled connection.Organizations::addEnabledConnection()
attachs a connection to an organization.Organizations::updateEnabledConnection()
makes changes to properties of a connection on an organization.Organizations::removeEnabledConnection()
detaches a connection from an organization.Organizations::getMembers()
returns an array of all users who are members of an organization. Pagination supported.Organizations::addMembers()
makes one or more users members of an organization.Organizations::removeMembers()
removes membership of one or more users from an organization.Organizations::getMemberRoles()
returns an array of roles a user has been granted within the organization.Organizations::addMemberRoles()
grants a user one or more roles within an organization.Organizations::removeMemberRoles()
strips one or more roles from a member of an organization.Organizations::getInvitations()
returns an array of all pending invitations for an organization. Pagination supported.Organizations::getInvitation()
returns details about a pending invitation for an organization.Organizations::createInvitation()
creates an invitation to join an organization.Organizations::deleteInvitation()
deletes a pending invitation for an organization.GenericResource::checkEmptyOrInvalidArray()
helper.UsersMockedTest
for newUsers::getOrganizations()
method.OrganizationsTest
unit tests for newAuth0\SDK\API\Management\Organizations
class.OrganizationsIntegrationTest
integration tests for newAuth0\SDK\API\Management\Organizations
class.