General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
GetAnonymousUserID
GetByID
GetByLogin
GetCount
GetEmail
GetExternalAuthList
GetFirstName
GetFullName
GetID
GetLastName
GetList
GetLogin
GetParam
GetPasswordHash
GetUserGroup
GetUserGroupArray
GetUserGroupList
GetUserGroupString
IsAdmin
IsAuthorized
IsOnLine
Login
LoginByHash
Logout
Register
SavePasswordHash
SendPassword
SendUserInfo
SetLastActivityDate
SetParam
SetUserGroup
SetUserGroupArray
SimpleRegister
Update
GetExternalAuthList
CDBResult CUser::GetExternalAuthList();
The method returns a list of all external authorization sources. You can define your own external authorization source by setting the OnExternalAuthList event handler. Non-static method.
Returns value
CDBResult class object is returned, each record of which consists of two fields: ID - external source ID, NAME - external source name.See Also
Examples of use
<?
$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?>
© «Bitrix24», 2001-2023
Up