-
Notifications
You must be signed in to change notification settings - Fork 7
Methods ~ SCIM queries
Definitions:
- /resources/versions/1.1.php
- /resources/versions/2.0.php
- __construct()
- createUser($requestBody)
- getUser($userID, $isIncluded='')
- listUsers($options)
- putUser($requestBody, $userID)
- patchUser($requestBody, $userID)
- parseUserPayload($payload, $userCheck=false)
- createGroup($requestBody)
- getGroup($groupID, $isIncluded='')
- listGroups($options)
- patchGroup($requestBody, $groupID)
- putGroup($requestBody, $groupID)
- parseGroupPayload($payload, $groupCheck=false)
- showServiceProviderConfig()
- throwError($statusCode, $description)
Description: This method instatiates a Database() object into $db, which is used by the other methods to make requests to the database.
Description: This method takes a request from an identity provider, parses the request and, if checks pass, creates the user in the database and prints the user's SCIM profile.
Parameters:
- $requestBody
- the body of the request coming from the identity provider
Description: This method returns or prints the user's SCIM profile.
Parameters:
- $userID
- the user's UUID that will be returned by this method
- $isIncluded
- if the attribute is set, then the method will return the user's SCIM profile, otherwise it will print it
Description: This method will return the list of users in SCIM format, depending on the options set.
Parameters:
- $options
- this attribute was designed to receive the value from
$_GET
and filter the users based oncount
,startIndex
andfilter
query parameters
- this attribute was designed to receive the value from
Description: This method was designed to handle PUT requests on /Users/$UserID
endpoint.
Parameters:
- $requestBody
- the body of the request coming from the identity provider
- $userID
- the user's UUID that will be modified
Description: This method was designed to handle PATCH requests on /Users/$UserID
endpoint.
Parameters:
- $requestBody
- the body of the request coming from the identity provider
- $userID
- the user's UUID that will be modified
Description: This method verifies the user payload sent by an identity provider and, if a check fails, prints an error message.
Parameters:
- $payload
- the body of the request coming from the identity provider
- $userCheck
- if this attribute is true, then the method will not check if the user already exists in the database
Description: This method takes a request from an identity provider, parses the request and, if checks pass, creates the group in the database and prints the group's SCIM profile.
Parameters:
- $requestBody
- the body of the request coming from the identity provider
Description: This method returns or prints the group's SCIM profile.
Parameters:
- $groupID
- the group's UUID that will be returned by this method
- $isIncluded
- if the attribute is set, then the method will return the group's SCIM profile, otherwise it will print it
Description: This method will return the list of groups in SCIM format, depending on the options set.
Parameters:
- $options
- this attribute was designed to receive the value from
$_GET
and filter the groups based oncount
,startIndex
andfilter
query parameters
- this attribute was designed to receive the value from
Description: This method was designed to handle PATCH requests on /Groups/$GroupID
endpoint.
Parameters:
- $requestBody
- the body of the request coming from the identity provider
- $groupID
- the group's UUID that will be modified
Description: This method was designed to handle PUT requests on /Groups/$GroupID
endpoint.
Parameters:
- $requestBody
- the body of the request coming from the identity provider
- $groupID
- the group's UUID that will be modified
Description: This method verifies the group payload sent by an identity provider and, if a check fails, prints an error message.
Parameters:
- $payload
- the body of the request coming from the identity provider
- $groupCheck
- if this attribute is true, then the method will not check if the group already exists in the database
Description: This method returns the SCIM server details for /ServiceProviderConfig endpoint.
Description: This method returns an error based on the status code and description.
Parameters:
- $statusCode
- the status code that will be returned in the header and body
- $description
- the message that will be returned when the error occurred