File tree Expand file tree Collapse file tree 5 files changed +24
-19
lines changed
Intuit.Ipp.OAuth2PlatformClient/Client
Intuit.Ipp.Utility/Common
Tools/XsdExtension/Intuit.Ipp.Data Expand file tree Collapse file tree 5 files changed +24
-19
lines changed Original file line number Diff line number Diff line change 1414 <PackageIcon >$(MSBuildThisFileDirectory)logo.png</PackageIcon >
1515 <OutputPath >$(SolutionDir)artifacts\bin</OutputPath >
1616 <Copyright >Copyright © 2020 Intuit, Inc.</Copyright >
17- <AssemblyVersion >14.6.3.5 </AssemblyVersion >
18- <FileVersion >14.6.3.4 </FileVersion >
17+ <AssemblyVersion >14.6.3.6 </AssemblyVersion >
18+ <FileVersion >14.6.3.6 </FileVersion >
1919 <Company >Intuit</Company >
2020 <AppendTargetFrameworkToOutputPath >true</AppendTargetFrameworkToOutputPath >
2121 <AppendRuntimeIdentifierToOutputPath >false</AppendRuntimeIdentifierToOutputPath >
Original file line number Diff line number Diff line change 99 <PackageId >IppDotNetSdkForQuickBooksApiV3</PackageId >
1010 <AssemblyName >IppDotNetSdkForQuickBooksApiV3</AssemblyName >
1111 <DocumentationFile >$(BaseOutputPath)$(AssemblyName).xml</DocumentationFile >
12- <MainVersion >14.6.3.5 </MainVersion >
12+ <MainVersion >14.6.3.6 </MainVersion >
1313 <PackageVersionSuffix >pre</PackageVersionSuffix >
1414 <Version >$(MainVersion)-$(PackageVersionSuffix)</Version >
1515 <Version >$(MainVersion)</Version >
Original file line number Diff line number Diff line change @@ -875,29 +875,19 @@ public Task<bool> ValidateIDTokenAsync(String idToken)
875875 IList < JsonWebKey > keys = DiscoveryDoc . KeySet . Keys ;
876876 string mod = "" ;
877877 string exponent = "" ;
878+ string keyIdFromHeader = null ;
878879 if ( keys != null )
879880 {
880- foreach ( var key in keys )
881- {
882- if ( key . N != null )
883- {
884- mod = key . N ;
885- }
886- if ( key . N != null )
887- {
888- exponent = key . E ;
889- }
890- }
891-
892881 if ( idToken != null )
893882 {
894883 string [ ] splitValues = idToken . Split ( '.' ) ;
895884 if ( splitValues [ 0 ] != null )
896885 {
897886 var headerJson = Encoding . UTF8 . GetString ( Base64Url . Decode ( splitValues [ 0 ] . ToString ( ) ) ) ;
898887 IdTokenHeader headerData = JsonConvert . DeserializeObject < IdTokenHeader > ( headerJson ) ;
888+ keyIdFromHeader = headerData . Kid ;
899889
900- if ( headerData . Kid == null )
890+ if ( keyIdFromHeader == null )
901891 {
902892 return Task . FromResult ( false ) ;
903893 }
@@ -965,6 +955,21 @@ public Task<bool> ValidateIDTokenAsync(String idToken)
965955 }
966956 }
967957
958+ foreach ( var key in keys )
959+ {
960+ if ( keyIdFromHeader == key . Kid )
961+ {
962+ if ( key . N != null )
963+ {
964+ mod = key . N ;
965+ }
966+ if ( key . N != null )
967+ {
968+ exponent = key . E ;
969+ }
970+ }
971+ }
972+
968973 RSACryptoServiceProvider rsa = new RSACryptoServiceProvider ( ) ;
969974 rsa . ImportParameters (
970975 new RSAParameters ( )
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ public static class CoreConstants
250250 /// <summary>
251251 /// The Request source header value.
252252 /// </summary>
253- public const string REQUESTSOURCEHEADER = "V3DotNetSDK14.6.3.5 " ;
253+ public const string REQUESTSOURCEHEADER = "V3DotNetSDK14.6.3.6 " ;
254254
255255 /// <summary>
256256 /// multipart/form-data format
Original file line number Diff line number Diff line change 1313 <PackageOutputPath >$(SolutionDir)artifacts\nupkg</PackageOutputPath >
1414 <OutputPath >$(SolutionDir)artifacts\bin</OutputPath >
1515 <Copyright >Copyright © 2020 Intuit, Inc.</Copyright >
16- <AssemblyVersion >14.6.3.4 </AssemblyVersion >
17- <FileVersion >14.6.3.4 </FileVersion >
16+ <AssemblyVersion >14.6.3.6 </AssemblyVersion >
17+ <FileVersion >14.6.3.6 </FileVersion >
1818 <Company >Intuit</Company >
1919 <AppendTargetFrameworkToOutputPath >true</AppendTargetFrameworkToOutputPath >
2020 <AppendRuntimeIdentifierToOutputPath >false</AppendRuntimeIdentifierToOutputPath >
You can’t perform that action at this time.
0 commit comments