public function Oauth2Client::setUser in Auth0 Single Sign On 8.2
Parameters
$user:
Return value
2 calls to Oauth2Client::setUser()
- Oauth2Client::exchangeCode in vendor/
auth0/ auth0-php/ src/ API/ Oauth2Client.php - Exchanges the code from the URI parameters for an access token, id token and user info
- Oauth2Client::updateUserMetadata in vendor/
auth0/ auth0-php/ src/ API/ Oauth2Client.php - Updates the user metadata. This end up calling the path /users/{id_user} To delete an attribute, just set it null. ie: [ 'old_attr' => null ] It will only update the existing attrs and keep the others untouched
File
- vendor/
auth0/ auth0-php/ src/ API/ Oauth2Client.php, line 382
Class
- Oauth2Client
- This class provides access to Auth0 Platform.
Namespace
Auth0\SDK\APICode
public function setUser($user) {
$key = array_search('user', $this->persistantMap);
if ($key !== false) {
$this->store
->set('user', $user);
}
$this->user = $user;
return $this;
}