summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-05 17:48:17 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-05 17:48:17 -0800
commitd0f15854c8fda26fd1b5d561a7f7a8316ff3e830 (patch)
treec22094f695ea0045166ca325799258c879881012 /samples
parent9a3885e6992462122057f532b7cbcda3695ca6bd (diff)
downloadDotNetOpenAuth-d0f15854c8fda26fd1b5d561a7f7a8316ff3e830.zip
DotNetOpenAuth-d0f15854c8fda26fd1b5d561a7f7a8316ff3e830.tar.gz
DotNetOpenAuth-d0f15854c8fda26fd1b5d561a7f7a8316ff3e830.tar.bz2
HttpRequestInfo ctors are now internal, and publicly we have static
factory methods that return HttpRequestBase instances.
Diffstat (limited to 'samples')
-rw-r--r--samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs2
-rw-r--r--samples/OpenIdOfflineProvider/HostedProvider.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs b/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
index 6dc5b7d..8d0c13d 100644
--- a/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
+++ b/samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
@@ -69,7 +69,7 @@
var resourceServer = new ResourceServer(new StandardAccessTokenAnalyzer(signing, encrypting));
IPrincipal result;
- var error = resourceServer.VerifyAccess(new HttpRequestInfo(httpDetails, requestUri), out result);
+ var error = resourceServer.VerifyAccess(HttpRequestInfo.Create(httpDetails, requestUri), out result);
// TODO: return the prepared error code.
return error != null ? null : result;
diff --git a/samples/OpenIdOfflineProvider/HostedProvider.cs b/samples/OpenIdOfflineProvider/HostedProvider.cs
index 788817d..0f10ba1 100644
--- a/samples/OpenIdOfflineProvider/HostedProvider.cs
+++ b/samples/OpenIdOfflineProvider/HostedProvider.cs
@@ -227,7 +227,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
Uri providerEndpoint = providerEndpointBuilder.Uri;
if (context.Request.Url.AbsolutePath == ProviderPath) {
- HttpRequestBase requestInfo = new HttpRequestInfo(context.Request);
+ HttpRequestBase requestInfo = HttpRequestInfo.Create(context.Request);
this.ProcessRequest(requestInfo, context.Response);
} else if (context.Request.Url.AbsolutePath.StartsWith(UserIdentifierPath, StringComparison.Ordinal)) {
using (StreamWriter sw = new StreamWriter(outputStream)) {