PHP API

TheIdentityHub

Provides methods to query an identity's profile.

Name Description
IdentityService Initializes a new instance of the TheIdentityHub class
Name Description Remarks
identity Main object property with identity information.
roles Main object property with role information.
accounts Main object property with identity accounts information.
friends Main object property with friends information.
Name Description
getSignInURL() The method getSignInURL() returns the link which will redirect to The Identity Hub's Authentication page.
getSignOutURL() The method getSignOutURL() returns the link to perform sign out which you can use anywhere in the application.
getProfile() This method will fill up main object property $ih->identity object with profile data as specified in The Identity Hub API https://www.theidentityhub.com/hub/Documentation/#GET-tenant-api-identity-v1.
getRoles() This method will fill up main object property $ih->roles with the array of object with property "name" in which will be stored role name.
getFriends() This method will fill up main object property $ih->friends with the array of object with friends data as specified in The Identity Hub API https://www.theidentityhub.com/hub/Documentation/#GET-tenant-api-identity-v1-friends_offset_limit.
getAccounts() This method will fill up main object property $ih->accounts with the array of object with accounts data as specified in The Identity Hub API https://www.theidentityhub.com/hub/Documentation/#GET-tenant-api-identity-v1-accounts.