Skip to main content
Skip table of contents

Configure DPE to use IdentityServer

To enable the new logon mechanism you have to change your web.config in the following way:

(1) disable forms auth by commenting it out:

<!--
    <authentication mode="Forms">
      <forms name="MyFormsAuthCookie" timeout="1440" slidingExpiration="true" loginUrl="Logon.aspx" ticketCompatibilityMode="Framework40"/>
    </authentication>
-->


(2) enable OIDC support by specifying an IdentityServer:

<appSettings>
...
    <add key="IdentityServer" value="http://vm-dpedemo:5000/"/>
...
</appSettings>


(3) enable WCF service support for OIDC by adding oidcEndpoint behavior extension and reference it in <behavior name="cors">:

<system.serviceModel>
...
    <behaviors>
      <endpointBehaviors>
        ...
        <behavior name="cors">
          <webHttp/>
          <jsonWebHttp/>
          <enableCorsEndpoint/>
          <oidcEndpoint/>
        </behavior>
      </endpointBehaviors>
    <behaviors>
...
    <extensions>
    ...
      </behaviorExtensions>
        ...
        <add name="oidcEndpoint" type="David.Dpe.Wcf.OidcEndpointBehaviorElement, David.Dpe.Wcf"/>
        ...
      </behaviorExtensions>
    </extensions>   
...
</system.serviceModel>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.