Microsoft ADFS 2.0

Introduction

In-Webo provides innovative, no-hardware, 100% SaaS, strong authentication solutions for employee and consumer secure transactions.

The purpose of this guide is to explain how to use InWebo products with various existing products running as a relying party trust with ADFS 2.0 (examples : MS SharePoint, MS Office 365, etc…).

1. Check the URL of your Federation Server Identifier

On ADFS Server:

  1. Click on Start → Administrative Tools → ADFS 2. Manager

  2. On the right panel, click on Edit Federation Service Properties…

  3. On the field « Federation Service Identifier » check that the beginning of the URL is https and not http. Otherwise, the link between InWebo and ADFS Server won't work.



  4. Click on OK and close AD FS 2.0 Management. 

2. Configure your InWebo account 

  1. Open a browser and go to this address: https://<yourADFSServeraddress>/FederationMetadata/2007-06/FederationMetadata.xml.

  2. Save the Metadata file on your PC 

  3. Open the Metadata file with notepad or wordpad and copy the entire content in the clipboard

  4. Open a browser to your MyInWebo administration console

  5. Click on Secured Sites

  6. In the « Connectors » part at the bottom, click on Add a connector of type…

  7. Select « SAML 2.0»

  8. In the box « 1-Service Provider metadata », paste the Metadata from your clipboard

  9. Click on Add

  10. The window content is updated, then click on Download InWebo IDP SAML 2.0 metadata IDP in XML format and save it.

  11. In the Secure Sites section, click on add a Secure Site of type… and select the connector you just created above

  12. In the field called « Secured Site name», give a name to your destination service (SharePoint, Office365, etc…) and in the field « Called URL » type the URL of your destination service (ex: http://YourSharepointServerAddress:31436/).

  13. Click on Add 

  14. Close your browser 

3. In ADFS 2.0, configure InWebo as Claims Provider Trust

At this point, you need to configure ADFS 2.0. Open a Remote Desktop Connection to your ADFS server and start ADFS 2.0 Manager as follows:

  1. Click on Start → Administrative Tools → ADFS 2. Manager

  2. On the left panel, click on Trust Relationship  and then Claims Providers Trusts

  3. On the right click on add Claims Provider Trust…

  4. Click on Start 

  5. Choose Import data about claim provider from file and browse to the InWebo Metadata file that you have saved from InWebo WebConsole. Then click on next  



  6. On the field « Display Name », give a name to your Claim Provider Trust and click on next   

  7. Verify that « Open the Edit Claim Rules dialog for this claims provider trust when the wizard closes » is not selected. Click on close
     

  8. Double click on the new Claim Provide trust that you have just added. On the tab « Advanced », select SHA-1.
     

  9. Click on OK 

4. Add Claims Rules for InWebo Claims Provider Trust

InWebo is a SAML v2.0 Identity Provider. Its sends the authenticated username in a SAML assertion called “uid”. The value in uid corresponds to the InWebo login. You now have to add Claims Rules for this “uid”.  

  1. Click on the new Claims Provider trust that you just add.  

  2. On the right panel, click on Edit Claims Rules…
     

  3. Click on Add a rule  

  4. Select « Pass Trough or Filter an Incoming Claim  » and click on next
     

  5. In the field Claim rule name, give a name to your rule.  

  6. In the field Incoming Claim Type type: uid
      
    NB: The SAML InWebo response contains the InWebo's login within a “uid” claim type. This Claim Rule passes through the InWebo login as a uid claim type.  

  7. Click on Finish
     

  8. Click on Yes
     

  9. Click on OK 

5a. Sample of claims Rules for SharePoint

If configured with Active Directory as Claims Provider, SharePoint receives its claims directly from Active Directory based on Windows Authentication. Now that InWebo is the Claims Provider, you need to build a link between the authenticated username sent by InWebo (the “uid”) and the required attributes (email, role) contained in Active Directory.

  1. On the left panel, click on Relying Party Trust  

  2. Click on your SharePoint relying party trust 

  3. On the right, click on Edit Claim Rules… 

  4.  Click on Add Rule…  

  5. Select « Send Claims Using a Custom Rule » and click on next  

  6.  In the field Claim rule name, give a name to your rule.  

  7.  In the field Custom rule type: 


    NB:  This rule takes the InWebo login and looks in Active Directory if a user has the same Windows Account Name (samAccountName = {0} & param = c.Value). It means that you have to use the same login on InWebo and on ADFS. If you want to use a different identifier (email address, UPN …), you have to adapt this rule. 
    When Active Directory has found the user, it gives the email, the role and the department of the user. This depends on what kind of claims you need to send to SharePoint. Indeed in this case, SharePoint asks for the email, the role and for the department. You should adapt this rule on the claims that your SharePoint implementation requires.

  8. Click on Finish 

  9. Click on OK

  10. Double click on your Sharepoint relying party trust. On the tab “Advanced”, select SHA-1.

  11. Click on OK 

  12. Close AD FS 2.0 Management. 

5b. Sample of claims Rules for Office 365

If configured with Active Directory as Claims Provider,Office 365 receives its claims directly from Active Directory based on Windows Authentication. Now that InWebo is the Claims Provider, you need to build a link between the authenticated username sent by InWebo (the “uid”) and the required attributes (email, role) contained in Active Directory.

  1. On the left panel, click on Relying Party Trust  

  2. Click on your Office 365 relying party trust 

  3. On the right, click on Edit Claim Rules…

  4.  Click on Add Rule…  

  5. Select « Send Claims Using a Custom Rule » and click on next  

  6.  In the field Claim rule name, give a name to your rule.  

  7.  Samples of Custom rule for Office 365

  8. NB:  This rule takes the InWebo login and looks in Active Directory if a user has the same Windows Account Name (samAccountName = {0} & param = c.Value). It means that you have to use the same login on InWebo and on ADFS. If you want to use a different identifier (email address, UPN …), you have to adapt this rule. 
    When Active Directory has found the user, it gives the email, the role and the department of the user. This depends on what kind of claims you need to send to Office 365.
    Indeed in this case, Office 365 asks for the email, the role and for the department. You should adapt this rule on the claims that your Office 365 implementation requires.

  9. Click on Finish 

  10. Click on OK to close "Edit Claim Rules for Office 365"

  11. Double click on your Office 365 relying party trust. On the tab “Advanced”, select SHA-1.

  12. Click on OK 

  13. Close AD FS 2.0 Management. 

6. Delete the "Sign in" page

This step is not mandatory and you can skip it, the link between InWebo and SharePoint should work by now. But you will realize that when you go on your SharePoint web you will have to choose between adfs authentication and InWebo authentication. In order to delete this page, follow this step.

  1. On the ADFS Server, find the file name HomeRealmDiscovery.aspx.cs
    C:\inetpub\adfs\ls\ HomeRealmDiscovery.aspx.cs  

  2. Open the file with an appropriate publisher (notepad++)  

  3. In the function « protected void Page_Init » add this two lines : 

    The first one deletes the possibility to choose adfs authentication and the second one imposes an automatic choice.

  4. Save the file and restart your IIS. 

Updated on 05/10/2015