Skip to content

Commit

Permalink
Merge pull request #102 from microsoft/Nava_samplecode
Browse files Browse the repository at this point in the history
Updating Authentication type to OAuth as default
  • Loading branch information
Nkrb authored Mar 11, 2020
2 parents 4ad4b52 + 50bc823 commit 133c409
Show file tree
Hide file tree
Showing 63 changed files with 1,186 additions and 6,999 deletions.
70 changes: 18 additions & 52 deletions cds/App.config
Original file line number Diff line number Diff line change
@@ -1,37 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<connectionStrings>

<!--
To run all samples without being prompted for login credentials, un-comment and edit one of the example connection strings below using appropriate values for your environment.
Otherwise, you will be prompted for login information when you run a sample project.
Use the system.diagnostics/switches keys below to control levels of logging.
-->



<!--
** !IMPORTANT! **
Be mindful that the connection information you enter in these will be available to anyone with access to this file.
Do not push changes to this file to a cloned GitHub repository.
-->

<!--Online using Office 365-->

<!--<add name="Connect" connectionString="Url=https://yourorgname.crm.dynamics.com; [email protected]; Password=password; authtype=Office365; RequireNewInstance=True"/>-->
<!--Online using OAuth-->
<!--<!--<add name="Connect"
connectionString="
AuthType=OAuth;
[email protected];
Url=https://contosotest.crm.dynamics.com;
AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;
RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;
TokenCacheStorePath=d:\MyTokenCache;
LoginPrompt=Auto"/>-->
</connectionStrings>
<system.diagnostics>
<trace autoflush="true" />
Expand All @@ -48,60 +38,36 @@
<add name="fileListener" />
</listeners>
</source>

<!--ADALListener conflicts with using ADAL libraries directly without the Xrm.Tooling.Connector assemblies.
Uncomment this if you are using the Xrm.Tooling.Connector-->

<!--<source name="Microsoft.IdentityModel.Clients.ActiveDirectory" switchName="Microsoft.IdentityModel.Clients.ActiveDirectory" switchType="System.Diagnostics.SourceSwitch">
<listeners>
<add name="console" type="System.Diagnostics.ConsoleTraceListener"/>
<remove name="Default"/>
<add name="ADALListener"/>
</listeners>
</source>-->

</sources>
<switches>

<!--
Possible values for switches: Off, Error, Warning, Info, Verbose
All" includes Error, Warning, Info, Verbose, Activity Tracing Trace levels
ActivityTracing: Just Activity Tracing
Verbose: includes Error, Warning, Info, Trace levels
Info: includes Error, Warning, Info levels
Warning: includes Error, Warning levels
Error: includes Error level
-->

<add name="Microsoft.Xrm.Tooling.Connector.CrmServiceClient" value="Error" />
<add name="Microsoft.Xrm.Tooling.CrmConnectControl" value="Error" />
<add name="Microsoft.IdentityModel.Clients.ActiveDirectory" value="Error" />
</switches>
<sharedListeners>
<add name="fileListener" type="Microsoft.Xrm.Tooling.Connector.DynamicsFileLogTraceListener, Microsoft.Xrm.Tooling.Connector" />
<add name="fileListener" type="Microsoft.Xrm.Tooling.Connector.DynamicsFileLogTraceListener, Microsoft.Xrm.Tooling.Connector" BaseFileName="PowerApps-Sample-Log" Location="LocalUserApplicationDirectory" MaxFileSize="52428800" />

<!--
fileListener Log written to
\\{Computer Name}\Users\{UserName}\AppData\Roaming\PowerApps\{Sample Project Name}\1.0.0.0\PowerApps-Sample-Log-{YYYY}-{MM}-{DD}.log
-->
<!--ADALListener conflicts with using ADAL libraries directly without the Xrm.Tooling.Connector assemblies.
Uncomment this if you are using the Xrm.Tooling.Connector-->
Expand All @@ -117,7 +83,7 @@
</sharedListeners>
</system.diagnostics>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Expand All @@ -138,17 +104,17 @@
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
<assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.29.0.1078" newVersion="2.29.0.1078" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
<assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.29.0.1078" newVersion="2.29.0.1078" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
</configuration>
8 changes: 7 additions & 1 deletion cds/GenerateEntityDiagram/GenerateEntityDiagram/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@

<!--Online using Office 365-->

<!--<add name="Connect" connectionString="Url=https://yourorgname.crm.dynamics.com; [email protected]; Password=password; authtype=Office365; RequireNewInstance=True"/>-->
<!--<add name="Connect"
connectionString="
AuthType=OAuth;
[email protected];
Url=https://contosotest.crm.dynamics.com; AppId=51f81489-12ee-4a9e-aaae-a2591f45987d;
RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;
LoginPrompt=Auto"/>-->
</connectionStrings>
<system.diagnostics>
<trace autoflush="true" />
Expand Down
5 changes: 0 additions & 5 deletions cds/orgsvc/C#/.vscode/settings.json

This file was deleted.

Loading

0 comments on commit 133c409

Please sign in to comment.