﻿<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>  
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <connectionStrings>
    <add name="OrionIntelPortal" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\OrionIntel.Portal.mdf;Initial Catalog=OrionIntel.Portal;Integrated Security=True" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <!--  Release Notes
        When releasing to the Production/Live environment, it requires some configuration using Web.Release.Config.
        The Web.Release.Config makes use of a secure and protected file using a configSource in AppSettings.
    -->
  <appSettings>
    <!-- Production Url (Live;Online) -->
    <!-- This needs to change so OrionIntel can host the solution for more Companies-->
    <add key="WebPortalCompany" value="RS Anderson Treasury (PTY) LTD"/>
    <add key="WebPortalCompanyAddress" value="2 RSAT Business Park, 110 Frikkie Lane, Pretoria, 0000"/>
    <add key="WebPortalFwdUrl" value="https://portal.rsat.co.za"/>

    <!-- Default Legal Pages-->
    <!-- To disable a Page, clear the Key Value attribute (... value=""/>... ) -->
    <add key="LegalPageUrl" value="/TermsAndConditions"/>
    <add key="LegalPageUrl" value="/PrivacyPolicy"/>
    <add key="LegalPageUrl_TermsAndConditions" value="/TermsAndConditions"/>
    <add key="LegalPageUrl_PrivacyPolicy" value="/PrivacyPolicy"/>
    <add key="LegalPageUrl_TermsOfUse" value="TermsOfUse"/>
    <add key="LegalPageUrl_EndUserLicenseAgreement" value="/EndUserLicenseAgreement"/>
    
    <!-- The Web Support and Service details -->
    <add key="WebMasterCompany" value="Orion Intelligence (PTY) LTD"/>
    <add key="WebHostUrl" value="https://portal.orionintel.co.za"/>
    <add key="WebMasterEmail" value="webmaster@orionintel.co.za"/>
    <add key="WebMasterAddress" value="1 Orion Road, Interwebs, 6660"/>
    
    <!-- Google Sign-In Client Details -->
    <add key="GoogleClientId" value="722389888634-6accn2ph6ooig3t03ck8662m18t7ovu2.apps.googleusercontent.com" />
    <add key="GoogleClientSecret" value="G2B-ncJvdvZmUoW3NlQr0Lxs" />
    <add key="GoogleLoginReturnURL" value="/signin-google" />

    <!-- Twitter Sign-In Client Details -->
    <add key="TwitterConsumerKey" value="g2hhEWBWsQekVQ6gVaRW8mwHq" />
    <add key="TwitterConsumerSecret" value="taJNP4BUITe62g8dOrRCmVRPVMTx8d0GdYPkCM2UPptTjiGL8t" />
    <add key="TwitterLoginReturnURL" value="/signin-twitter" />

    <!-- System Configuration -->
    <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" />
    
  </appSettings>
  <system.web>
    <authentication mode="None" />
    <compilation debug="true" targetFramework="4.5.1" />
    
    <!--Limit File Uploads; 10240 Kb = 10 MB-->
    <httpRuntime targetFramework="4.5.1" maxRequestLength="10240" maxQueryStringLength="2048" maxUrlLength="2048" />
  </system.web>
  <system.webServer>
    <modules>
      <remove name="FormsAuthenticationModule" />
    </modules>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <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="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.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="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.AspNet.Identity.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.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="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v11.0" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
  <system.net>
    <mailSettings>
      <!--smtp configSource="MailSettings.config" /-->
      <!--smtp deliveryMethod="Network" from="no-reply@webportal.co.za">
        <network host="smtp.gmail.com" port="587" userName="burningza@gmail.com" password="Jam3sLak3r!" enableSsl="true" />
      </smtp> -->
      <smtp deliveryMethod="SpecifiedPickupDirectory" from="portal@oriontechnologies.co.za">
        <network host="localhost" />
        <specifiedPickupDirectory pickupDirectoryLocation="C:\Users\James\Documents\Visual Studio 2013\Projects\OrionIntel\MailPickup\" />
      </smtp>
    </mailSettings>
  </system.net>
</configuration>