如何确定sts和lpid以对ADFS进行身份验证

时间:2018-06-01 07:39:58

标签: c# authentication sharepoint adfs

我试图关注these instructions,但我不知道要包含哪些内容

  1. STS
  2. LPID
  3. 链接中的代码如下所示

    string samlSite = "https://saml.set1.bertonline.info/sites/bert";
    
    OfficeDevPnP.Core.AuthenticationManager am = new OfficeDevPnP.Core.AuthenticationManager();
    ClientContext ctx = am.GetADFSUserNameMixedAuthenticatedContext(samlSite, "administrator", "pwd", "domain", "sts.set1.bertonline.info", "urn:sharepoint:saml");
    
    FieldCollection fields = ctx.Web.Fields;
    IEnumerable<Field> results = ctx.LoadQuery<Field>(fields.Where(item => item.Hidden != false));
    ctx.ExecuteQuery();
    
    foreach (Field field in results)
    {
        Console.WriteLine("{0} - {1}", field.Id, field.InternalName);
    }
    

    我公平起诉我知道你对samlSite使用了什么,但对sts或lpid完全不了解。我将如何开始寻找这些?

0 个答案:

没有答案
相关问题