113 lines
5.9 KiB
XML
113 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
NOTE: although OAuth/API is installed to the same _layouts folder as OAuth/Authenticated and OAuth/Public, it will be created
|
|
as separate site in IIS, which means that OAuth/API/web.config won't inherit OAuth/web.config. So if something is added here,
|
|
check that it may be also needed in other web.config because there is no inheritance.
|
|
-->
|
|
|
|
<configuration>
|
|
<configSections>
|
|
<!-- log4net section is needed because DotNetOpenAuth uses it internally -->
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" requirePermission="false" />
|
|
<sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246">
|
|
<sectionGroup name="oauth2" type="DotNetOpenAuth.Configuration.OAuth2SectionGroup, DotNetOpenAuth, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246">
|
|
<section name="authorizationServer" type="DotNetOpenAuth.Configuration.OAuth2AuthorizationServerSection, DotNetOpenAuth, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246" requirePermission="false" allowLocation="true" />
|
|
</sectionGroup>
|
|
<section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246" requirePermission="false" allowLocation="true" />
|
|
</sectionGroup>
|
|
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
|
</configSections>
|
|
|
|
<!-- this is an optional configuration section where aspects of dotnetopenauth can be customized -->
|
|
<dotNetOpenAuth>
|
|
|
|
<oauth2>
|
|
<authorizationServer></authorizationServer>
|
|
</oauth2>
|
|
<!-- Relaxing SSL requirements is useful for simple samples, but NOT a good idea in production. -->
|
|
<messaging relaxSslRequirements="true">
|
|
<untrustedWebRequest>
|
|
<whitelistHosts>
|
|
</whitelistHosts>
|
|
</untrustedWebRequest>
|
|
</messaging>
|
|
</dotNetOpenAuth>
|
|
|
|
<log4net>
|
|
<appender name="DBAppender" type="Taloyhtio.GeneralSSO.Server.CodeFiles.Services.Impl.Logger, Taloyhtio.GeneralSSO.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521">
|
|
<layout type="log4net.Layout.PatternLayout, log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a">
|
|
<param name="ConversionPattern" value="%m%n%l, line: %L%n%c" />
|
|
</layout>
|
|
</appender>
|
|
<root>
|
|
<level value="ALL" />
|
|
<appender-ref ref="DBAppender" />
|
|
</root>
|
|
<logger name="DotNetOpenAuth">
|
|
<level value="ALL" />
|
|
</logger>
|
|
</log4net>
|
|
|
|
<connectionStrings>
|
|
<add name="Taloyhtio.GeneralSSO.Database" connectionString="Server=(local);database=GeneralSSO.Server;User ID=sa;Password=sa;" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
|
|
<appSettings>
|
|
<add key="AuthServerSigningCert_SubjectName" value="TaloyhtioSSO AuthServer Signing" />
|
|
<add key="AuthServerSigningCert_StoreName" value="My" /> <!-- StoreName enum -->
|
|
<add key="AuthServerSigningCert_StoreLocation" value="LocalMachine" /> <!-- StoreLocation enum -->
|
|
<add key="ResourceServerEncryptionCert_SubjectName" value="TaloyhtioSSO ResourceServer Encryption" />
|
|
<add key="ResourceServerEncryptionCert_StoreName" value="My" /> <!-- StoreName enum -->
|
|
<add key="ResourceServerEncryptionCert_StoreLocation" value="LocalMachine" /> <!-- StoreLocation enum -->
|
|
<add key="AccessTokenLifeTimeMinutes" value="2" />
|
|
<add key="PMCBaseAddress" value="http://localhost:17588" />
|
|
<add key="MembershipProviderName" value="taloyhtio" />
|
|
</appSettings>
|
|
|
|
<uri>
|
|
<!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
|
|
which is necessary for OpenID urls with unicode characters in the domain/host name.
|
|
It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
|
|
<idn enabled="All" />
|
|
<iriParsing enabled="true" />
|
|
</uri>
|
|
|
|
<system.web>
|
|
<customErrors mode="Off" />
|
|
<httpModules>
|
|
<remove name="PublishingHttpModule" />
|
|
<remove name="DependencyRegistrarModule" />
|
|
<remove name="AutoMapperConfigurationModule" />
|
|
<remove name="UnitOfWorkModule" />
|
|
<add name="InitializationModule" type="Taloyhtio.GeneralSSO.Server.CodeFiles.Infrastructure.Web.InitializationModule, Taloyhtio.GeneralSSO.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521" />
|
|
</httpModules>
|
|
</system.web>
|
|
|
|
<system.webServer>
|
|
<validation validateIntegratedModeConfiguration="false" />
|
|
<modules>
|
|
<remove name="PublishingHttpModule" />
|
|
<remove name="DependencyRegistrarModule" />
|
|
<remove name="AutoMapperConfigurationModule" />
|
|
<remove name="UnitOfWorkModule" />
|
|
<add name="InitializationModule" type="Taloyhtio.GeneralSSO.Server.CodeFiles.Infrastructure.Web.InitializationModule, Taloyhtio.GeneralSSO.Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521" />
|
|
</modules>
|
|
</system.webServer>
|
|
|
|
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="log4net" publicKeyToken="692fbea5521e1304" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-1.2.10.0" newVersion="1.2.11.0" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" />
|
|
<bindingRedirect oldVersion="2.1.0.4000" newVersion="2.1.2.4000" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
|
|
</configuration> |