#415 Use a cross-platform friendly HttpClient for CoreCLR.
This commit is contained in:
parent
6915db67f2
commit
4b1f710c39
|
|
@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Authentication.JwtBearer
|
||||||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
new WinHttpHandler();
|
new HttpClientHandler();
|
||||||
#endif
|
#endif
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
},
|
},
|
||||||
"dnxcore50": {
|
"dnxcore50": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
"System.Net.Http": "4.0.1-beta-*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,6 @@
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": { },
|
"dnx451": { },
|
||||||
"dnxcore50": {
|
"dnxcore50": { }
|
||||||
"dependencies": {
|
|
||||||
"System.Dynamic.Runtime": "4.0.11-beta-*",
|
|
||||||
"System.ObjectModel": "4.0.11-beta-*"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ namespace Microsoft.AspNet.Authentication.OAuth
|
||||||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
new WinHttpHandler();
|
new HttpClientHandler();
|
||||||
#endif
|
#endif
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
},
|
},
|
||||||
"dnxcore50": {
|
"dnxcore50": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
"System.Net.Http": "4.0.1-beta-*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
||||||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
new WinHttpHandler();
|
new HttpClientHandler();
|
||||||
#endif
|
#endif
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"dnxcore50": {
|
"dnxcore50": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Collections.Specialized": "4.0.1-beta-*",
|
"System.Collections.Specialized": "4.0.1-beta-*",
|
||||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
"System.Net.Http": "4.0.1-beta-*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ namespace Microsoft.AspNet.Authentication.Twitter
|
||||||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
new WinHttpHandler();
|
new HttpClientHandler();
|
||||||
#endif
|
#endif
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
},
|
},
|
||||||
"dnxcore50": {
|
"dnxcore50": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
"System.Net.Http": "4.0.1-beta-*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue