workos-php
workos-php copied to clipboard
Add UserIdentityProvider and UserIdentityProviderType classes
Description
Add UserIdentityProvider and UserIdentityProviderType classes implement getUserIdentityProviders method in UserManagement class
- Introduced UserIdentityProvider and UserIdentityProviderType classes to represent user identity providers and their types.
- Added
getUserIdentityProvidersmethod in UserManagement to retrieve a user's identity providers. - Implemented unit tests for the new functionality in UserManagementTest.
Resolves #271
Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
[x ] Yes
https://workos.com/docs/reference/user-management/identity/list
Get user identities can be updated to have a PHP code sample now.
Request
<?php
WorkOS\WorkOS::setApiKey("sk_example_123456789");
$userManagement = new WorkOS\UserManagement();
$user = $userManagement->getUserIdentityProviders("user_01E4ZCR3C56J083X43JQXF3JK5");
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.