Question about registering custom STS as sharepoint trusted login provider

hi,
I created a Trusted Login Provider (SAML Sign-in) for SharePoint 2010 following the article
http://msdn.microsoft.com/en-us/library/ff955607.aspx
In Step 4: Setting Up Trust in SharePoint, the constructor of SPTrustedLoginProvider contains arguments of providerUri,
providerRealm. The providerRealm argument is a given web application’s url. If there are two web applications in a sharepoint farm, the first web app’s url is
http://lcoalhost:1000, the second is
http://localhost:2000. When registering the STS, I use
http://lcoalhost:1000 as the providerRealm argument value. Then, web app
http://lcoalhost:1000 uses the registerred STS as identity provider, can web app
http://lcoalhost:2000 uses the same STS as identity provider? If the second web app can’t use it, do I have to register another STS?

If i register the STS using:
SPTrustedLoginProvider provider1 = new SPTrustedLoginProvider (manager, "MySTS","My STS","http://win2008r2:888", "http://win2008r2:1000/_trust", claimTypes, nameClaim);
then, web app http://win2008r2:2000 can not use provider1 as its identity provider. So, when there are multiple web apps in a sp farm need to use STS, i have
to register multiple STSs, each with different provierRealm. But when i try to register another STS, another problem occurs.
X509Certificate2 importCertificate = new X509Certificate2(certificatePath);
provider1.SigningCertificate = importCertificate;
manager.TrustedLoginProviders.Add(provider);
the code line "manager.TrustedLoginProviders.Add(provider);" throw an exception:"Exception of type 'System.ArgumentException' was thrown. Parameter name: newProvider".
I red the resouce code of manager.TrustedLoginProviders.Add with reflector. The exception is because i try to register another STS using the same certificate
that is used to register the first STS. So, one certificate can be used to register only one STS. It seems that i have to deploy multiple STS websites with each using different certificate to sign the token.
The relationship is as follow:
N web apps <--> N registered STSs <--> N certificates <--> N physical STS websites
But what my N web apps need is actually one physical STS website. Do I have to deploy N
physical STS websites using the same STS project?
Can you give me some advice? thank you.

Similar Messages

  • Question about the custom panel language

    I have a question about the custom panel language...
    The document you provide seems to lack details on some features. Namely the icon and picture widgets. I see from looking at the examples and other vendor's web pages that these features exist, but I don't find any detailed descriptions of them in the documentation. Is there a more complete document describing these and other features...
    http://www.adobe.com/products/xmp/custompanel.html
    Alternatively, can someone fill me in on the syntax and options for at least the icon and picture widget. For instance, how do you load external icons or pictures...
    Tom

    Gunar,
    It could be interesting to have something like
    icon(url: 'http://www.adobe.com/Images/logo.gif', width: 20, height: 20);
    or better
    picture(url: 'http://www.adobe.com/Images/logo.gif', width: 20, height: 20);
    for the pictures and
    include(url: 'http://www.adobe.com/xml/custompanel/camera1.txt');
    for include the cusmtom panel's dynamic portions
    Juan Pablo

  • Questions about a custom login page.

    Could someone give me an example of a custom login page that does the error checking with
    p_error_code. I can't seem to get one to work correctly. I don't ever get any info in
    p_error_code when there is an error in login.
    You can email me the code at [email protected] if you would prefer.
    Thanks.
    Bethany

    Bethany,
    The best place for this question is the Orac le9ias Portal Security and Login Server forum.
    Thanks

  • The Question about mess "Customizing Error in Work Schedule Rule ..."

    Dear all,
    I run the Start-Payroll  and I getting an error " Customizing Error In WSR for that Personal Number"
    I configuration all of Time Management with start date is 01.01.2000 and when I run Payroll on Payroll period is 01/2000 with start date is 01.01.2000 to 31.01.2000 for Employees hiring on 01.01.2000 then I have an error " Customizing error in work schedule rule .. .. ... ..".
    But I can run the payroll period on 02/2000 with start date is 01.02.2000 to 29.02.2000 for Employees hiring on 01.02.2000.  form 02/2000 it is okies.
    Please help me  solve about my problem
    Thank for your answers
    Regds
    Huyen Nguyen

    Customizing Error in Work Schedule Rule
    where are u getting this error
    if it  is PY  log
    Check GENPS this error will come under this Function
    it is the combination of
    ur Holiday calendar
    Employee Sub Group
    Personal Sub area Grouping
    and ur Daily work Schedule Rule
    Check the Start dats an end dates fo all the above Settings along with their Groupings in table V_T508A

  • Question about the customized FPGA signal generator.

    I connected the AO0 and AO1 ports to the oscilloscope. But I got nothing. What should I do?
    Attachments:
    Customized FPGA Signal Generator.lvproj ‏2159 KB

    Hi CZ_Kevin,
    When attaching a project, it might be best to zip the project folder, or attach your VIs, so that we can look at your code. As for the screenshot, it looks like you might be using too many resources on the FPGA but again it is hard to determine without looking at your code.
    Since you are using a myRIO, you might get better responses by posting to the Academic Hardware Products forum as this handles many myRIO questions.
    Also, there are many pre-built project templates and examples within LabVIEW that might be worth exploring as well as a project guide that includes many tuturials. You can find the latter here.
    David C

  • Question about registering the iPod

    I bought an iPod touch for my brother as a Christmas gift and would like to download some music and pictures for him before he receives it. If I register this iPod, will he be able to re-register all the information on his computer later? Better yet, is there a way I can download songs to the iPod without registering?
    I realize these are probably ridiculus questions, but any help would be appreciated. Thanks!

    They're not ridiculous but you can't do it that way.
    You can put together a compilation of videos and movies and give him the gift card for that when you give him the iPod.
    Just click on Buy iTunes Gifts in the store ( box on the upper right ) and scroll down the gift card page till you get to the "gift compilations".
    Follow the instructions from there.

  • Question about Access database linking in SharePoint

    I have a database table I created in Access 2010, I can get it into SharePoint as a list and then create a calendar view.  I used the SharePoint icon under Database Tools in Access.  My problem is that when I enter new information in the Access
    Database I am not able to get SharePoint to reflect this update.
    I should state that I am extremely rusty with Access and SharePoint.
    I appreciate any help that can be offered and I thank you in advance.

    Check out few synchronization options from the following link, hope it helps
    https://support.office.com/en-us/article/Synchronize-a-SharePoint-2010-list-with-Access-2010-975bfb97-c799-4fce-b7cc-3db3b397f116
    Cheers,

  • Some questions about your custom unlock bios.

    Hello Svet,
    Just new with msi gs60 ghost pro 2qe. Want to know if the bios unlock is possible for me and is it possible to lower my fan speed with this custom bios from you. I am newbie with custom bios mod but i know how to flash a bios. Hope you can help me with this.
    GPU : gtx970M
    BIOS : E16H5IMS.10C
    VBIOS :
    EC : 16H5EMS1 Ver.5.04
    Ps There is a newer bios and ec firmware update for my msi.

    Thx for your reply. So do you expect in future there can something be done with the fan control of my msi? When i read this form a lot of other laptops can be done the fan control with your custom bios, or have i wrong? Can you send me some information(if there is) from your custom bios? So i can understand what kind of options there are. Thanks in advance.

  • Question about creating Custom JSF form tag and renderer

    Is it possible to build a custom form tag in JSF and have it replace the standard jsf form tag. Are there any potential issues with child forms or anything else.
    I created the following
    - custom form component class that extends javax.faces.component.UIForm (the only changes I made was to change the value of the COMPONENT_TYPE attribute and change the value for renderer type)
    - custom form renderer class that extends HtmlBasicRenderer and I made changes to the encodebegin method and encrypt the value of the id and action url)
    - custom form tag class that extends UIComponentELTag ( I did not make any changes here)
    - tld for my custom form tag
    - created an entry in faces-config.xml of my web-app for my custom form tag
    Are there any issues with the above.
    Is there something I should do in addition.

    In theory you should be fine. Some of the open source libraries either swap out the renderer for the standard h:form component or supply their own form components. You could look at their code for reference if need be.

  • Questions about Verizon Customer Service

    Christopher from Verizon finally called me back tonight. He lied to me repeatedly about calling me back several times over the last month. When I reminded him that he was calling my VERIZON PHONE and he could check the log of incoming calls, it would clearly show that I never received the call. Finally, he confessed to me that his father is a drug addict and that is what caused him to not return my calls. I immediately asked him to switch me to a supervisor and I was connected to a supervisor by the name of Christopher (ironically) badge #XXXXXX from Irvine, CA who understood my frustruation but could only credit me $75 for last month, this month, AND next month since my plan never changed in time for the next billing cycle. I WILL cancel my phones tomorrow and I WILL NOT be paying the $1,195 in early termination fees. Shame on Verizon. I never should have experienced what I did tonight. Not to mention the countless hours that I have spent on calls with them.
    Unbelievable.
    Message was edited by: Verizon Moderator to remove Badge #

    clarkerw1122 wrote:
    I was connected to a supervisor by the name of Christopher (ironically) badge #XXXXXX from Irvine, CA who understood my frustruation but could only credit me $75 for last month, this month, AND next month since my plan never changed in time for the next billing cycle.
    As Akitoscorpio said, I feel like I walked into the middle of the story.... clarkerw1122, your post gives no indication of what the original problem is/was, and all I see is frustration with the credit offered and apparently, a lot of effort to get that.  We don't know why you are seeking more of a credit, if it is justified...
    You may be entitled to more of a credit,  $75 may be very generous.  Without details and more of the story, we can't be much help to you (if you did come here for help, that is).  Maybe you just wanted to vent...

  • Question about integration of STS and BPS

    Hi gurus,
        I want to realize following functionality:
    after the status of my sales plan set to "approved",I can run my later process of my sales plan(another BPS web application),otherwise ,the later BPS web application can NOT be run(I can let some BPS web application not run),but I can't catched the "approved" status to my BPS0 variable or set the status into my cube . How can I do that?
       thank you experts very much!

    Hi Denny,
    Could be done in a simple FOX also, logic as below
    For the Condition....
      Flag  = 1
    End For
    Include the FOX in the Planning sequence at the appropriate step
    subsequently filter out in the Parameter group to process records only whose flag value is 1
    Assigning appropriate points is the way of saying thanks at SDN *

  • Dumb question about registering Pro

    I have QT player and bought the key for pro, instructions say open QT in system preferences. QT is not showing in system preferences, I am confused. How do I enter key?
    Thank you

    Just had exactly same problem on my new work machine. Your post suggests you have Mac OS X (10.4.8) so this might not be applicable but certainly under Snow Leopard (10.6.x) this is what you need to do.
    You need to go into your Utilities folder (Command+U in Finder) and inside you should find +QuickTime Player 7.app+.
    If you can't find it then try this support article:
    Installing QuickTime Player 7 on Mac OS X v10.6 Snow Leopard - http://support.apple.com/kb/ht3678
    "To install the QuickTime Player 7 from the Mac OS X v10.6 Snow Leopard install DVD:
    Insert your Mac OS X 10.6 Snow Leopard Install DVD.
    Open the Optional Installs folder and double-click "Optional Installs.mpkg".
    Select the QuickTime 7 option and click Continue.
    QuickTime Player 7 will be installed in your Utilities folder."
    Once you have +QuickTime Player 7.app+ open it and then choose 'Registration…' from the QuickTime Player 7 menu
    Hope that helps,
    Mark

  • Exception of type 'System.ArgumentException' was thrown. Parameter name: newObj when register sts to sharepoint 2010

    Hi
    when i register my custom sts to sharepoint i receive error : 
    Exception of type 'System.ArgumentException' was thrown.
    Parameter name: newObj
    i followed https://msdn.microsoft.com/EN-US/library/office/ff955607(v=office.14).aspx
    private void button1_Click(object sender, EventArgs e)
    List<SPTrustedClaimTypeInformation> claimMapping = new List<SPTrustedClaimTypeInformation>();
    List<string> strClaimMapping = new List<string>();
    SPTrustedClaimTypeInformation idClaim = new SPTrustedClaimTypeInformation("EmailAddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress");
    SPTrustedClaimTypeInformation titleClaim = new SPTrustedClaimTypeInformation("Title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title");
    titleClaim.AcceptOnlyKnownClaimValues = true;
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    titleClaim.AddKnownClaimValue("Engineer");
    titleClaim.AddKnownClaimValue("Manager");
    titleClaim.AddKnownClaimValue("CEO");
    // Create the string[] for all claims. This is required for
    // the construction of the SPTrustedLoginProvider object.
    strClaimMapping.Add(idClaim.InputClaimType);
    strClaimMapping.Add(titleClaim.InputClaimType);
    X509Certificate2 ImportTrustCertificate = new X509Certificate2(@"C:\SPPROJECTS\STS\ClaimsWalkthrough\Resources\STSTestCertPub.cer");
    claimMapping.Add(idClaim);
    claimMapping.Add(titleClaim);
    SPSecurityTokenServiceManager manager = SPSecurityTokenServiceManager.Local;
    SPTrustedLoginProvider provider = new SPTrustedLoginProvider(manager,
    "WingtipSTS", "WingtipSTS", new Uri("http://localhost:97/default.aspx"),
    "https://portal.test.com:90/_trust/", strClaimMapping.ToArray(), idClaim);
    foreach (SPTrustedClaimTypeInformation claimTypeInfo in claimMapping)
    if (claimTypeInfo.InputClaimType == provider.IdentityClaimTypeInformation.InputClaimType)
    continue;
    provider.AddClaimTypeInformation(claimTypeInfo);
    if (ImportTrustCertificate != null)
    provider.SigningCertificate = ImportTrustCertificate;
    //provider.ClaimProviderName = "ContosoCRMClaimProvider";
    provider.UseWReplyParameter = true;
    manager.TrustedLoginProviders.Add(provider);
    manager.Update();
    adil

    After spending the last hour looking again at my FBA issue, i finally got the answer to my own question which is SPClaimsUtility.
    For anyone in the future having this issue, this is a snapshot from my code:
    SPSecurity.RunWithElevatedPrivileges(delegate()
                   string usernamestring = GetTextBox("tbUsername").Text;
                   string passwordstring = GetTextBox("tbPassword").Text;
    ATPAuthProvider.ATPMembershipProvider memProvider = new ATPAuthProvider.ATPMembershipProvider();
    if (memProvider.ValidateUser(usernamestring, passwordstring))
                           MembershipUser user = memProvider.GetUser(usernamestring,
    true);
                           if (user != null)
      bool Status = SPClaimsUtility.AuthenticateFormsUser(HttpContext.Current.Request.UrlReferrer,
    usernamestring, passwordstring);
                               if (Status)
                                   HttpContext.Current.Response.Redirect("/Pages/Home.aspx", false);
    Note: The SPClaimsUtility class is from the Microsoft.SharePoint.IdentityModel dll which reside in the new GAC location: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c
    Credit to Sivarajan's blog: http://sivarajan.me/post/SharePoint-2013-Enabling-Custom-Login-Page-and-Mixed-Contents-Part-2
    Enjoy!

  • Remove configuration custom STS with old web application using powershell ?

    HI
    i configured a custom sts with sharepoint 2010 web application using following commands,
    $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("c:\signing.cer")
    $map1 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" –SameAsIncoming
    $map2=New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" –SameAsIncoming
    $realm=”http://claimauthweb/_trust/default.aspx”
    $ap=New-SPTrustedIdentityTokenIssuer -Name "SimplePassiveSTS" -Description "A simple Asp.Net STS on DevBox." –Realm $realm -ClaimsMappings $map1,$map2 -ImportTrustCertificate $cert -SignInUrl "https://devbox/SimpleSTS/default.aspx" -IdentifierClaim $map1.InputClaimType
    after that i create the new web application with claimauthweb and selected trusted identity provider. 
    but when i create again new web application with different name and ip , after when i login to new web application using custom
    sts it redirects to sts login page and after it goes to claimauthweb application not the new web application.
    so here how i unregister with old web application and again register sts with new web applicatio?
    adil

    I believe if you want to run this you will need to remove the provider from all Web Applications in CA. Then you should be able to run Remove-SPTrustedIdentityTokenIssuer.
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • Question for register Oracle agent inside Zone

    Hi All,
    There is a question about register an Oracle agent inside zone:
    Let�s say S1, S2 be the global zone for the hosts of a pair of Sun cluster, and zone1, zone2 as the non-global zone respectively.
    Zone1 and zone2 with the zone path /dbzone, and the oracle binary is installed in zone1 and zone2�s local disk, with path /home/oracle/10.2 as the ORACLE_HOME.
    Therefore, the corresponding path to the host S1 and S2 is /dbzone/root/home/oracle/10.2.
    And when we register the Oracle HA resource, with input the oracle home as �/home/oracle/10.2�, it will prompt that the directory is not contain required Oracle file.
    And if we change to �/dbzone/root/home/oracle/10.2�, it will prompt with error when create resource, with the message, S1:zone1, path �/dbzone/root/home/oracle/10.2� not exist.
    We currently to solve the problem by moving the oracle binary to SAN disk, with mount point name �/u01/oradata/portal/oracle/10.2� on the both global and non-global zone.
    I would like to ask that is there any missing syntax or any document about how to register ORACLE_HOME inside zone�s local disk?
    Thanks,
    Cheung

    Cheung,
    You probably haven't got the init<SID>.ora file in both ORACLE_HOME/dbs directories or something like that. Have a look at /var/adm/messages on both these zones and the global zone and see if there are any more hints as to what is missing.
    Regards,
    Tim
    ---

Maybe you are looking for

  • Please help me to choose the correct version for my needs

    Hi. Currently we have an ESXi server with 2 virtualized windows server 2012 standard edition. I want to setup a new server. His role will only be WDS. The server will have to be a domain controler in order to use WDS or is it not necessary ? If not c

  • Pdf files won't open on Mac

    I have a Mac, OS X, 10.9.4.  I recently downloaded the newest version of Adobe Reader 11.0.09 and installed it.  I left my computer before the installation was completed, and it turns out it wanted me to close Firefox.  I did, but it was the next day

  • Fade through color in Slideshow module

    The fade through color option (situated under 'slide duration' in LR4) appears to be missing in LR5. Is there another way to avoid image overlap in the transition between photos in slideshows?

  • External disks won't sleep?

    I recently changed from a ppc g5 to an intel mac mini and find that my four wd smartbook USB drives no longer sleep when the mini is shut down, is this normal?

  • Issue with Master Detail OAF Page

    Hi Friends, I have an issue with the Master-Detaiil Page. I have developed a Master-detail form in OAF similar to the one in Oracle Forms. The master details are appearing fine. I have created a transient variable selectFlag that represents if the ma