Skip to content

Commit 67e6f88

Browse files
committed
Add OAuth2 MVC sample
1 parent 84fb9c8 commit 67e6f88

File tree

103 files changed

+63625
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+63625
-48
lines changed

IPPDotNetDevKitCSV3/Code/IppDotNetDevKitCSV3.sln

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26403.7
4+
VisualStudioVersion = 15.0.27703.2026
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Security", "Security", "{D65F7456-F8DB-4EC0-8C03-C22961C80649}"
77
EndProject
@@ -39,6 +39,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
3939
ProjectSection(SolutionItems) = preProject
4040
IppDotNetDevKitCSV3.vsmdi = IppDotNetDevKitCSV3.vsmdi
4141
Local.testsettings = Local.testsettings
42+
..\..\..\..\..\Downloads\SampleApp-CRUD-.Net-master\SampleApp_CRUD_.Net\SampleApp_CRUD_DotNet.sln = ..\..\..\..\..\Downloads\SampleApp-CRUD-.Net-master\SampleApp_CRUD_.Net\SampleApp_CRUD_DotNet.sln
4243
TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
4344
EndProjectSection
4445
EndProject
@@ -106,8 +107,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples to test SDK", "Samp
106107
EndProject
107108
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OAuth1", "OAuth1", "{F69BCC7C-6728-409B-93C1-9208B58288DF}"
108109
EndProject
110+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OAuth2", "OAuth2", "{09E90970-0C09-4958-9CA4-4B644E462E0D}"
111+
EndProject
109112
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IDGOauthSample", "..\Sample app for testing SDK\OAuth1\IDG Oauth Sample\IDGOauthSample\IDGOauthSample.csproj", "{7A3F50D7-0993-4D4E-B3E8-B82CABC620FE}"
110113
EndProject
114+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MVC Manual Code Flow Client", "..\Sample app for testing SDK\OAuth2\MvcCodeFlowClientManual\MVC Manual Code Flow Client.csproj", "{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}"
115+
EndProject
111116
Global
112117
GlobalSection(SolutionConfigurationPlatforms) = preSolution
113118
Debug|Any CPU = Debug|Any CPU
@@ -418,6 +423,18 @@ Global
418423
{7A3F50D7-0993-4D4E-B3E8-B82CABC620FE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
419424
{7A3F50D7-0993-4D4E-B3E8-B82CABC620FE}.Release|x86.ActiveCfg = Release|Any CPU
420425
{7A3F50D7-0993-4D4E-B3E8-B82CABC620FE}.Release|x86.Build.0 = Release|Any CPU
426+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
427+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
428+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
429+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
430+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Debug|x86.ActiveCfg = Debug|Any CPU
431+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Debug|x86.Build.0 = Debug|Any CPU
432+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
433+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Release|Any CPU.Build.0 = Release|Any CPU
434+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
435+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
436+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Release|x86.ActiveCfg = Release|Any CPU
437+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB}.Release|x86.Build.0 = Release|Any CPU
421438
EndGlobalSection
422439
GlobalSection(SolutionProperties) = preSolution
423440
HideSolutionNode = FALSE
@@ -454,7 +471,9 @@ Global
454471
{6FA32031-6520-4A6F-BFFA-227EEC56B292} = {EEB954D6-D751-4E7F-BEC3-8D10CC55FF81}
455472
{F9C4B669-E10B-44C4-8ED4-85CEAAFC4126} = {1438B09F-C188-4F16-A00B-B037D8DD271C}
456473
{F69BCC7C-6728-409B-93C1-9208B58288DF} = {A0ED5BF7-1149-4C3D-B48C-E3D10CD638A0}
474+
{09E90970-0C09-4958-9CA4-4B644E462E0D} = {A0ED5BF7-1149-4C3D-B48C-E3D10CD638A0}
457475
{7A3F50D7-0993-4D4E-B3E8-B82CABC620FE} = {F69BCC7C-6728-409B-93C1-9208B58288DF}
476+
{C67DB8BB-6083-436D-9748-4BDD9EC8C0EB} = {09E90970-0C09-4958-9CA4-4B644E462E0D}
458477
EndGlobalSection
459478
GlobalSection(ExtensibilityGlobals) = postSolution
460479
SolutionGuid = {D58CF63B-6932-4503-893A-42C15952609D}

IPPDotNetDevKitCSV3/Sample app for testing SDK/OAuth1/IDG Oauth Sample/IDGOauthSample/IDGOauthSample.csproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.8.2\build\Microsoft.Net.Compilers.props" Condition="Exists('..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.8.2\build\Microsoft.Net.Compilers.props')" />
3+
<Import Project="..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.4.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.4.0\build\Microsoft.Net.Compilers.props')" />
44
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
55
<PropertyGroup>
66
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -107,8 +107,8 @@
107107
<SpecificVersion>False</SpecificVersion>
108108
<HintPath>..\..\..\..\SDK Assemblies\Intuit.Ipp.WebHooksService.dll</HintPath>
109109
</Reference>
110-
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
111-
<HintPath>..\..\..\..\Code\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
110+
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
111+
<HintPath>..\..\..\..\Code\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
112112
</Reference>
113113
<Reference Include="System.Data.DataSetExtensions" />
114114
<Reference Include="System.Web.DynamicData" />
@@ -159,8 +159,10 @@
159159
</Compile>
160160
</ItemGroup>
161161
<ItemGroup>
162+
<Content Include="packages.config">
163+
<SubType>Designer</SubType>
164+
</Content>
162165
<Content Include="Resource\my_data.xlsx" />
163-
<None Include="packages.config" />
164166
<None Include="Web.Debug.config">
165167
<DependentUpon>Web.config</DependentUpon>
166168
</None>
@@ -198,7 +200,7 @@
198200
<PropertyGroup>
199201
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
200202
</PropertyGroup>
201-
<Error Condition="!Exists('..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.8.2\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.8.2\build\Microsoft.Net.Compilers.props'))" />
203+
<Error Condition="!Exists('..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.4.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\Code\packages\Microsoft.Net.Compilers.2.4.0\build\Microsoft.Net.Compilers.props'))" />
202204
</Target>
203205
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
204206
Other similar extension points exist, see Microsoft.Common.targets.

IPPDotNetDevKitCSV3/Sample app for testing SDK/OAuth1/IDG Oauth Sample/IDGOauthSample/Web.config

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0"?>
22
<!--
33
For more information on how to configure your ASP.NET application, please visit
44
http://go.microsoft.com/fwlink/?LinkId=169433
55
-->
66
<configuration>
77
<configSections>
88
<sectionGroup name="intuit">
9-
<section name="ipp" type="Intuit.Ipp.Utility.IppConfigurationSection, Intuit.Ipp.Utility" allowDefinition="Everywhere" allowLocation="true" />
9+
<section name="ipp" type="Intuit.Ipp.Utility.IppConfigurationSection, Intuit.Ipp.Utility" allowDefinition="Everywhere" allowLocation="true"/>
1010
</sectionGroup>
1111
</configSections>
1212
<!--
@@ -18,46 +18,26 @@
1818
</system.Web>
1919
-->
2020
<system.web>
21-
<compilation debug="true" targetFramework="4.6.1" />
22-
<httpRuntime targetFramework="4.6.1" />
21+
<compilation debug="true" targetFramework="4.6.1"/>
22+
<httpRuntime targetFramework="4.6.1"/>
2323
</system.web>
2424
<appSettings>
25-
<add key="webpages:Version" value="5.2.0.0" />
26-
<add key="webpages:Enabled" value="false" />
27-
<add key="ClientValidationEnabled" value="true" />
28-
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
29-
<!--OAuth Prod company -->
30-
<add key="applicationToken" value="079612baba165b4b90b8728b793ff0f153d8" />
31-
<add key="consumerKey" value="qyprdTofPrkvPkTvyrhmhGkQVeCkk7" />
32-
<add key="consumerSecret" value="B4aPhgMLu91cL5ONHLvH6ulpxa8yxYGkuKfEhWLk" />
33-
<!--OAuth Dev/Sandbox company-->
34-
<!--<add key="applicationToken" value="" />
25+
<add key="webpages:Version" value="5.0.0.0"/>
26+
<add key="webpages:Enabled" value="false"/>
27+
<add key="ClientValidationEnabled" value="true"/>
28+
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
3529

36-
<add key="consumerKey" value="qyprd68jMGebyWgiNFT411r4KnhmB9" />
30+
<add key="applicationToken" value=""/>
31+
<add key="consumerKey" value="EnterConsumerKeyHere"/>
32+
<add key="consumerSecret" value="EnterConsumerSecretHere"/>
3733

38-
<add key="consumerSecret" value="j2QGgFRv5yYMXB5lVXUI0NBPlHAmz0drjANG1KeX" />-->
39-
<!--OAuth Dev/Sandbox company- for a developer-->
40-
<!--<add key="applicationToken" value="ac1a1217bc327b4701baa5bbe8d629716c2b" />
41-
<add key="consumerKey" value="qyprdPyI2zStZIVO1VilbbZvWy6E5q" />
42-
<add key="consumerSecret" value="n4vsVfMpU83eB6gH5G9vP6eIswKg91U0JLb5hs7G" />-->
43-
<!--stage-->
44-
<!--<add key="applicationToken" value="839309a3b2b0db414fba308be4905779cd78" />
45-
<add key="consumerKey" value="lve2e3TOCmacK3K3DzAxQwVOi3gdvk" />
46-
<add key="consumerSecret" value="xN6qqoAZ7mSeyEuW2l1xMwvDrDBR7SDIpBMzKNBL" />-->
47-
<!--OAuth -->
48-
<!--Payments only app-->
49-
<!--<add key="applicationToken" value="c2c87556ba490b452ab9ebdb5e516d59a13b"/>
50-
51-
<add key="consumerKey" value="qyprdC9LDw206rMDFuch8ADFFSN7wq"/>
52-
53-
<add key="consumerSecret" value="KoLe6izZ5BK2f6qTttkJFAUEgJMGR1d6mS15XMhf"/>-->
5434
<!-- Configurations -->
55-
<add key="OauthLink" value="https://oauth.intuit.com/oauth/v1" />
56-
<add key="ServiceContext.BaseUrl.Qbo" value="https://quickbooks.api.intuit.com/" />
57-
<add key="AuthorizeUrl" value="https://appcenter.intuit.com/Connect/Begin" />
58-
<add key="GET_REQUEST_TOKEN" value="https://oauth.intuit.com/oauth/v1/get_request_token" />
59-
<add key="GET_ACCESS_TOKEN" value="https://oauth.intuit.com/oauth/v1//get_access_token" />
60-
<add key="DeepLink" value="sandbox.qbo.intuit.com" />
35+
<add key="OauthLink" value="https://oauth.intuit.com/oauth/v1"/>
36+
<add key="ServiceContext.BaseUrl.Qbo" value="https://quickbooks.api.intuit.com/"/>
37+
<add key="AuthorizeUrl" value="https://appcenter.intuit.com/Connect/Begin"/>
38+
<add key="GET_REQUEST_TOKEN" value="https://oauth.intuit.com/oauth/v1/get_request_token"/>
39+
<add key="GET_ACCESS_TOKEN" value="https://oauth.intuit.com/oauth/v1//get_access_token"/>
40+
<add key="DeepLink" value="sandbox.qbo.intuit.com"/>
6141
<!--stage-->
6242
<!--<add key="OauthLink" value="https://oauthws.e2e.ep.intuit.com/oauth/v1" />
6343
@@ -70,16 +50,16 @@
7050
<runtime>
7151
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
7252
<dependentAssembly>
73-
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
74-
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
53+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
54+
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0"/>
7555
</dependentAssembly>
7656
</assemblyBinding>
7757
</runtime>
7858
<intuit>
7959
<ipp>
8060
<logger>
8161
<!-- Custom Logger to configure -->
82-
<customLogger name="traceLogger" type="Intuit.Ipp.Diagnostics.TraceLogger, Intuit.Ipp.Diagnostics, Version=5.2.0.0, Culture=neutral, PublicKeyToken=null" enable="true" />
62+
<customLogger name="traceLogger" type="Intuit.Ipp.Diagnostics.TraceLogger, Intuit.Ipp.Diagnostics, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null" enable="true"/>
8363
</logger>
8464
</ipp>
8565
</intuit>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="DevDefined.OAuth" version="0.2" targetFramework="net461" />
4-
<package id="Microsoft.Net.Compilers" version="2.8.2" targetFramework="net461" developmentDependency="true" />
5-
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
4+
<package id="Microsoft.Net.Compilers" version="2.4.0" targetFramework="net461" developmentDependency="true" />
5+
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net461" />
66
</packages>
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
2+
[Bb]in/
3+
[Oo]bj/
4+
SDK Assemblies/
5+
6+
# mstest test results
7+
TestResults
8+
9+
## Ignore Visual Studio temporary files, build results, and
10+
## files generated by popular Visual Studio add-ons.
11+
12+
# User-specific files
13+
*.suo
14+
*.user
15+
*.sln.docstates
16+
17+
# Build results
18+
[Dd]ebug/
19+
[Rr]elease/
20+
x64/
21+
*_i.c
22+
*_p.c
23+
*.ilk
24+
*.meta
25+
*.obj
26+
*.pch
27+
*.pdb
28+
*.pgc
29+
*.pgd
30+
*.rsp
31+
*.sbr
32+
*.tlb
33+
*.tli
34+
*.tlh
35+
*.tmp
36+
*.log
37+
*.vspscc
38+
*.vssscc
39+
.builds
40+
41+
# Visual C++ cache files
42+
ipch/
43+
*.aps
44+
*.ncb
45+
*.opensdf
46+
*.sdf
47+
48+
# Visual Studio profiler
49+
*.psess
50+
*.vsp
51+
*.vspx
52+
53+
# Guidance Automation Toolkit
54+
*.gpState
55+
56+
# ReSharper is a .NET coding add-in
57+
_ReSharper*
58+
59+
# NCrunch
60+
*.ncrunch*
61+
.*crunch*.local.xml
62+
63+
# Installshield output folder
64+
[Ee]xpress
65+
66+
# DocProject is a documentation generator add-in
67+
DocProject/buildhelp/
68+
DocProject/Help/*.HxT
69+
DocProject/Help/*.HxC
70+
DocProject/Help/*.hhc
71+
DocProject/Help/*.hhk
72+
DocProject/Help/*.hhp
73+
DocProject/Help/Html2
74+
DocProject/Help/html
75+
76+
# Click-Once directory
77+
publish
78+
79+
# Publish Web Output
80+
*.Publish.xml
81+
82+
# NuGet Packages Directory
83+
packages
84+
85+
# Nuget package creation
86+
NuGet/lib
87+
88+
# Windows Azure Build Output
89+
csx
90+
*.build.csdef
91+
92+
# Windows Store app package directory
93+
AppPackages/
94+
95+
# Others
96+
[Bb]in
97+
[Oo]bj
98+
sql
99+
TestResults
100+
[Tt]est[Rr]esult*
101+
*.Cache
102+
ClientBin
103+
[Ss]tyle[Cc]op.*
104+
~$*
105+
*.dbmdl
106+
Generated_Code #added for RIA/Silverlight projects
107+
108+
# Backup & report files from converting an old project file to a newer
109+
# Visual Studio version. Backup files are not needed, because we have git ;-)
110+
_UpgradeReport_Files/
111+
Backup*/
112+
UpgradeLog*.XML

0 commit comments

Comments
 (0)