Bitrix Site Manager

CUser::GetExternalAuthList

CDBResult
CUser::GetExternalAuthList();

The method GetExternalAuthList returns a list of all external authorization sources. You can define your own external authorization source by setting the OnExternalAuthList event handler.

Return Values

Returns an instance of CDBResult, each record having two fields: ID - the external source ID and NAME - name of the external source.

See Also

Example



<?
$rExtAuth = CUser::GetExternalAuthList();
if($arExtAuth = $rExtAuth->GetNext()):
    ?><select name="EXTERNAL_AUTH_ID">
    <option value="">(internal auth)</option>
    <?do{?>
        <option value="<?=$arExtAuth['ID']?>"<?
            if($str_EXTERNAL_AUTH_ID==$arExtAuth['ID']) echo ' selected';
        ?>><?=$arExtAuth['NAME']?></option>
    <?}while($arExtAuth = $rExtAuth->GetNext());?>
    </select>
<?endif?>