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);
    }
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);
    }
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 ) ; }
Returns authentication URL. Usually, you want to redirect your user to it.
@param bool $identifierSelect whether to request OP to select identity for an user in OpenID 2, does not affect OpenID 1.
@return string the authentication URL.
@throws Exception on failure.
Returns authentication URL . Usually you want to redirect your user to it .