Создание связи с Open ID


URL: components/services/persons.asmx

Метод: LinkUserToOpenIdConnect

Передаваемые параметры

ПараметрОписание
ASPNETSessionIdИдентификатор сессии пользователя Системы
personIdИдентификатор пользователя
List<OpenIdConnectPersonLink> personLinksМассив идентификаторов пользователей в сервисе (NameIdentifier) и идентификаторы провайдера авторизации (AuthenticationType)
OpenIdConnectPersonLink это пара из (AuthenticationType, NameIdentifier)

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:str="http://streamline/">
  <soapenv:Header/>
  <soapenv:Body>
    <str:LinkUserToOpenIdConnect>
      <str:ASPNETSessionId>string</str:ASPNETSessionId>
      <str:personId>guid</str:personId>
      <str:personLinks>
        <str:OpenIdConnectPersonLink>
          <str:AuthenticationType>string</str:AuthenticationType>
          <str:NameIdentifier>string</str:NameIdentifier>
        </str:OpenIdConnectPersonLink>
        <str:OpenIdConnectPersonLink>
          <str:AuthenticationType>string</str:AuthenticationType>
          <str:NameIdentifier>string</str:NameIdentifier>
        </str:OpenIdConnectPersonLink>
      </str:personLinks>
    </str:LinkUserToOpenIdConnect>
  </soapenv:Body>
</soapenv:Envelope>

Возвращаемый параметр

ПараметрОписание
LinkUserToOpenIdConnectResultРезультат выполнения запроса
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <LinkUserToOpenIdConnectResponse xmlns="http://streamline/">
      <LinkUserToOpenIdConnectResult>
        <Errors>
          <string>string</string>
          <string>string</string>
        </Errors>
        <Objects>
          <string>string</string>
          <string>string</string>
        </Objects>
      </LinkUserToOpenIdConnectResult>
    </LinkUserToOpenIdConnectResponse>
  </s:Body>
</s:Envelope>