Compare commits

...

3 Commits

Author SHA1 Message Date
ByteBlast
53024cd531 Release version 1.17-pre 2015-04-07 19:32:09 +01:00
ByteBlast
4e3d613e16 Merge branch 'jlcj1974-master' into LinkedIn-Fix 2015-04-07 19:25:34 +01:00
jlcj1974
b0e3eba0c1 Overrides ExpectContinue for LinkedIn HTTP API requests 2015-04-07 11:53:54 -05:00
3 changed files with 10 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>Owin.Security.Providers</id> <id>Owin.Security.Providers</id>
<version>1.16.0</version> <version>1.17.0-pre</version>
<authors>Jerrie Pelser and contributors</authors> <authors>Jerrie Pelser and contributors</authors>
<owners>Jerrie Pelser</owners> <owners>Jerrie Pelser</owners>
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl> <licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
@@ -16,10 +16,9 @@
Also adds generic OpenID 2.0 providers as well as a Steam-specific implementatio Also adds generic OpenID 2.0 providers as well as a Steam-specific implementatio
</summary> </summary>
<releaseNotes> <releaseNotes>
Version 1.16 Version 1.17-pre
Added Temporary fix for broken LinkedIn provider.
- Added Foursquare Provider (Thank you Ricardo Peres - https://github.com/rjperes)
</releaseNotes> </releaseNotes>
<copyright>Copyright 2013, 2014</copyright> <copyright>Copyright 2013, 2014</copyright>
<tags>owin katana oauth LinkedIn Yahoo Google+ GitHub Reddit Instagram StackExchange SalesForce TripIt Buffer ArcGIS Dropbox Wordpress Battle.NET Yammer OpenID Steam Twitch</tags> <tags>owin katana oauth LinkedIn Yahoo Google+ GitHub Reddit Instagram StackExchange SalesForce TripIt Buffer ArcGIS Dropbox Wordpress Battle.NET Yammer OpenID Steam Twitch</tags>

View File

@@ -35,7 +35,7 @@ namespace Owin.Security.Providers.LinkedIn
if (Options.StateDataFormat == null) if (Options.StateDataFormat == null)
{ {
IDataProtector dataProtector = app.CreateDataProtector( IDataProtector dataProtector = app.CreateDataProtector(
typeof (LinkedInAuthenticationMiddleware).FullName, typeof(LinkedInAuthenticationMiddleware).FullName,
Options.AuthenticationType, "v1"); Options.AuthenticationType, "v1");
Options.StateDataFormat = new PropertiesDataFormat(dataProtector); Options.StateDataFormat = new PropertiesDataFormat(dataProtector);
} }
@@ -46,8 +46,11 @@ namespace Owin.Security.Providers.LinkedIn
httpClient = new HttpClient(ResolveHttpMessageHandler(Options)) httpClient = new HttpClient(ResolveHttpMessageHandler(Options))
{ {
Timeout = Options.BackchannelTimeout, Timeout = Options.BackchannelTimeout,
MaxResponseContentBufferSize = 1024*1024*10 MaxResponseContentBufferSize = 1024 * 1024 * 10
}; };
// Fix for LinkedIn Expect: 100- continue issue
httpClient.DefaultRequestHeaders.ExpectContinue = false;
} }
/// <summary> /// <summary>

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.16.0.0")] [assembly: AssemblyVersion("1.17.0.0")]
[assembly: AssemblyFileVersion("1.16.0.0")] [assembly: AssemblyFileVersion("1.17.0.0")]