public function buildAuthUrl($identifierSelect = null) { $authUrl = $this->authUrl; $claimedId = $this->getClaimedId(); if (empty($claimedId)) { $this->setClaimedId($authUrl); } $serverInfo = $this->discover($authUrl); if ($serverInfo['version'] == 2) { if ($identifierSelect !== null) { $serverInfo['identifier_select'] = $identifierSelect; } return $this->buildAuthUrlV2($serverInfo); } return $this->buildAuthUrlV1($serverInfo); }