yii\authclient\OpenId::validateRequiredAttributes PHP Method

validateRequiredAttributes() protected method

Checks if all required attributes are present in the server response.
protected validateRequiredAttributes ( ) : boolean
return boolean whether all required attributes are present.
    protected function validateRequiredAttributes()
    {
        if (!empty($this->requiredAttributes)) {
            $attributes = $this->fetchAttributes();
            foreach ($this->requiredAttributes as $openIdAttributeName) {
                if (!isset($attributes[$openIdAttributeName])) {
                    return false;
                }
            }
        }
        return true;
    }