<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=301880
  -->
<configuration>
  <configSections>
    <sectionGroup name="spring">
      <section name="context" type="Spring.Context.Support.WebContextHandler,  Spring.Web" />
      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
      <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core" />
    </sectionGroup>
    <sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
      <section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
      <section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
      <section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" />
      <section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
    </sectionGroup>
    <sectionGroup name="common">
      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
    </sectionGroup>
    <section name="fenixConfig" type="System.Configuration.NameValueSectionHandler" />
    <section name="microAuth" type="System.Configuration.NameValueSectionHandler" />
    <sectionGroup name="storages">
      <section name="localServer" type="System.Configuration.NameValueSectionHandler" />
    </sectionGroup>
    <section name="supportedBrowsers" type="System.Configuration.NameValueSectionHandler" />

    <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core" />
    <sectionGroup name="elmah">
      <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
      <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
      <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
    </sectionGroup>
  </configSections>
  <spring>
    <context>
      <resource uri="file://~/bin/Config/BancoDados.xml" />
      <resource uri="file://~/bin/Config/Servicos.xml" />
      <resource uri="file://~/bin/Config/Repositorios.xml" />
      <resource uri="file://~/bin/Config/Regras.xml" />
      <resource uri="file://~/bin/Config/Integracoes.xml" />
      <resource uri="file://~/bin/Config/Seguranca.xml" />
      <resource uri="file://~/bin/Config/Cache.xml" />
      <resource uri="file://~/bin/Config/Aspectos.xml" />
      <!--<resource uri="file://~/bin/Config/AspectosRestApi.xml" />-->
      <!--<resource uri="file://~/bin/Config/ServicosCliente.xml" />-->
    </context>
  </spring>
  <common>
    <logging>
      <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net1215">
        <arg key="configType" value="FILE-WATCH" />
        <arg key="configFile" value="~/bin/Config/Log.xml" />
      </factoryAdapter>
    </logging>
  </common>
  <microAuth>
    <add key="clientName" value="Seguranca" />
    <add key="clientSecret" value="abcdefgh" />
    <add key="serverBaseAddress" value="http://localhost:7777" />
    <add key="resourceBaseAddress" value="http://localhost:7778" />
    <add key="loginPath" value="/Login" />
    <add key="logoutPath" value="/Logout" />
    <add key="tokenPath" value="/Token" />
    <add key="authorizePath" value="/Authorize" />
    <add key="userDataPath" value="/api/Resource/GetUserData" />
  </microAuth>
  <fenixConfig>
    <add key="connectionString" value="DRIVER=SQL Server;SERVER=54.165.49.155,1433\SQLEXPRESS;DATABASE=FenixFase2;UID=sa;PWD=tradeProduto1;"/>
    <add key="connectionStringFenixWeb" value="SERVER=54.165.49.155,1433\SQLEXPRESS;DATABASE=FenixFase2;UID=sa;PWD=tradeProduto1;"/>
    <add key="sistema" value="Orçamento" />
    <add key="usuario" value="MICROUNI" />
    <add key="senha" value="m" />
    <add key="estacao" value="andre" />
    <add key="versao" value="10100" />
    <add key="tamanhoPagina" value="0" />
    <add key="tipoRetornoDados" value="JSON" />
    <add key="versaoAplicacao" value="1.4.5" />
    <add key="loginAutomatico" value="false" />
  </fenixConfig>
  <storages>
    <localServer>
      <add key="isphisicalpathrelative" value="true" />
      <add key="physical-path" value="images" />
      <add key="isurlrelative" value="true" />
      <add key="url" value="images" />
    </localServer>
  </storages>
  <supportedBrowsers>
    <add key="browsers" value="InternetExplorer|10;Chrome|*;Firefox|*;" />
    <add key="description" value="Microsoft Internet Explorer 10 ou superior, Chrome e Firefox." />
  </supportedBrowsers>
  <dotNetOpenAuth>
    <messaging relaxSslRequirements="true">
      <untrustedWebRequest>
        <whitelistHosts>
          <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
          <!--<add name="localhost" />-->
          <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
          <!--<add name="localhost" />-->
          <!-- Uncomment to enable communication with localhost (should generally not activate in production!) -->
          <!--<add name="localhost" />-->
        </whitelistHosts>
      </untrustedWebRequest>
    </messaging>
    <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
    <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
    <!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
    <reporting enabled="true" />
    <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
    <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
    <!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
    <!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
    <openid>
      <relyingParty>
        <security requireSsl="false">
          <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
          <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
            <add endpoint="https://www.google.com/accounts/o8/ud" />
          </trustedProviders>-->
          <!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
          <!--<trustedProviders rejectAssertionsFromUntrustedProviders="true">
            <add endpoint="https://www.google.com/accounts/o8/ud" />
          </trustedProviders>-->
        </security>
        <behaviors>
          <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
               with OPs that use Attribute Exchange (in various formats). -->
          <!-- The following OPTIONAL behavior allows RPs to use SREG only, but be compatible
               with OPs that use Attribute Exchange (in various formats). -->
          <add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" />
        </behaviors>
      </relyingParty>
      <provider />
    </openid>
  </dotNetOpenAuth>
  <appSettings>
    <!--<add key="cdnAddress" value="http://localhost:1010"/>-->
    <add key="chaveTokenRest" value="trs57@!$%" />
    <add key="expiracaoTokenRest" value="720" />
    <add key="aspnet:MaxJsonDeserializerMembers" value="20971520" />
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="KnownTypeAssemblies" value="MicroUniverso.Core,MicroUniverso.Seguranca.Comum" />
    <add key="elmah.mvc.disableHandler" value="false" />
    <add key="elmah.mvc.disableHandleErrorFilter" value="false" />
    <add key="elmah.mvc.requiresAuthentication" value="false" />
    <add key="elmah.mvc.IgnoreDefaultRoute" value="false" />
    <add key="elmah.mvc.allowedRoles" value="*" />
    <add key="elmah.mvc.allowedUsers" value="*" />
    <add key="elmah.mvc.route" value="elmah" />
    <add key="elmah.mvc.UserAuthCaseSensitive" value="true" />
  </appSettings>
  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.6.1" />
      </system.Web>
  -->
  <system.web>
    <sessionState timeout="20" />
    <compilation targetFramework="4.6.1" />
    <httpRuntime targetFramework="4.5" maxRequestLength="20971520" />
    <globalization culture="pt-BR" uiCulture="pt-BR" />
    <machineKey decryptionKey="B7EFF1C5839A624E3F97D0268917EDE82F408D2ECBFAC817" validation="SHA1" validationKey="C2B8DF31AB9624D69428066DFDA1A479542825F3B48865C4E47AF6A026F22D853DEC2B3248DF268599BF89EF78B9E86CA05AC73577E0D5A14C45E0267588850B" />
    <!--<authentication mode="Forms">
      <forms loginUrl="~/Usuario/Autenticar" timeout="2880" />
    </authentication>-->

    <httpHandlers>
      <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
    </httpHandlers>
    <httpModules>
      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
    </httpModules>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web" />



      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
    </modules>

    <staticContent>
      <remove fileExtension=".woff" />
      <mimeMap fileExtension=".woff" mimeType="application/octet-stream" />
    </staticContent>
    <handlers>
      <add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="Http" useDefaultWebProxy="true" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint name="UsuarioService" address="http://localhost:6068/UsuarioService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IUsuarioService" />
      <endpoint name="ClienteService" address="http://localhost:6068/ClienteService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IClienteService" />
      <endpoint name="ProdutoService" address="http://localhost:6068/ProdutoService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IProdutoService" />
      <endpoint name="VendedorService" address="http://localhost:6068/VendedorService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IVendedorService" />
      <endpoint name="FilialService" address="http://localhost:6068/FilialService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IFilialService" />
      <endpoint name="OrcamentoService" address="http://localhost:6068/OrcamentoService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IOrcamentoService" />
      <endpoint name="AutorizacaoContasPagarService" address="http://localhost:6068/AutorizacaoContasPagarService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.AutorizacaoContasPagar.IAutorizacaoContasPagarService" />
      <!--<endpoint name="UsuarioService" address="http://localhost:8050/Orcamento/Servicos/UsuarioService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IUsuarioService" />
            <endpoint name="ClienteService" address="http://localhost:8050/Orcamento/Servicos/ClienteService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IClienteService" />
            <endpoint name="ProdutoService" address="http://localhost:8050/Orcamento/Servicos/ProdutoService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IProdutoService" />
            <endpoint name="VendedorService" address="http://localhost:8050/Orcamento/Servicos/VendedorService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IVendedorService" />
            <endpoint name="FilialService" address="http://localhost:8050/Orcamento/Servicos/FilialService.svc" binding="basicHttpBinding" bindingConfiguration="Http" contract="MicroUniverso.Seguranca.Servicos.Spec.IFilialService" />-->
    </client>
  </system.serviceModel>
  <!--<system.diagnostics>
        <trace autoflush="true" />
        <sources>
            <source name="System.ServiceModel"
                    switchValue="All"
                    propagateActivity="true">
                <listeners>
                    <add name="sdt"
                        type="System.Diagnostics.XmlWriterTraceListener"
                        initializeData="trace.svclog"  />
                </listeners>
            </source>
        </sources>
    </system.diagnostics>-->
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.4000" newVersion="4.0.0.4000" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http.WebHost" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Spring.Core" publicKeyToken="65e474d141e25e07" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.0.1.45000" newVersion="2.0.1.45000" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Common.Logging.Core" publicKeyToken="af08829b84f0328e" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.2.15.0" newVersion="1.2.15.0" />
      </dependentAssembly>
    </assemblyBinding>
    <!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). -->
    <legacyHMACWarning enabled="0" />
    <!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
         to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
     -->
  </runtime>
  <elmah>
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/Logs/Elmah.Errors" />
    <security allowRemoteAccess="1" />
  </elmah>
  <dotless minifyCss="false" cache="true" web="false" strictMath="false" />
  <system.net>
    <defaultProxy enabled="true" />
    <settings>
      <!-- This setting causes .NET to check certificate revocation lists (CRL) 
           before trusting HTTPS certificates.  But this setting tends to not 
           be allowed in shared hosting environments. -->
      <!--<servicePointManager checkCertificateRevocationList="true"/>-->
    </settings>
  </system.net>
  <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>
</configuration>