Web.Config additions needed for U2registration and use in SurePassID Authentication Server

How to prepare for use of U2F in on-premises MFA server

In the .NET Features in Windows, make sure HTTP activation is enabled.

Search for     </serviceBehaviors> and right above the line with this text, insert:

       <behavior name="SurePassAuthServerWCFServiceU2F.SurePassAuthServerWCFServiceU2FBehavior">

          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->

          <serviceMetadata httpsGetEnabled="true" />

          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->

          <serviceDebug includeExceptionDetailInFaults="false" />

        </behavior>

Search for the </services> line and add the content below just above that </services> line:

      <service behaviorConfiguration="SurePassAuthServerWCFServiceU2F.SurePassAuthServerWCFServiceU2FBehavior" name="SurePassAuthServerU2F.SurePassAuthServiceU2F">

         <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsBinding" contract="SurePassAuthServerU2F.ISurePassAuthServiceU2F">

                    <identity>

                        <dns value="localhost" />

                    </identity>

                </endpoint>

                <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />

       </service>