summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdOfflineProvider/Controllers/ProviderController.cs
diff options
context:
space:
mode:
authorDavid Christiansen <DavidChristiansen@users.noreply.github.com>2015-01-05 09:33:24 +0000
committerDavid Christiansen <DavidChristiansen@users.noreply.github.com>2015-01-05 09:33:24 +0000
commit3770a51d19a04be18ade75f59e0ff1687010a130 (patch)
tree240382c976672ed421d529860117e37677328f02 /samples/OpenIdOfflineProvider/Controllers/ProviderController.cs
parent7574924b2b5c810b7c00328f04f506f28da3f2ec (diff)
parenta14dcb800b25d1b0477ab123b6865d90865f96f0 (diff)
downloadDotNetOpenAuth-3770a51d19a04be18ade75f59e0ff1687010a130.zip
DotNetOpenAuth-3770a51d19a04be18ade75f59e0ff1687010a130.tar.gz
DotNetOpenAuth-3770a51d19a04be18ade75f59e0ff1687010a130.tar.bz2
Merge pull request #359 from DavidChristiansen/develop
Closes #356, Closes #357, Closes #358
Diffstat (limited to 'samples/OpenIdOfflineProvider/Controllers/ProviderController.cs')
-rw-r--r--samples/OpenIdOfflineProvider/Controllers/ProviderController.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/OpenIdOfflineProvider/Controllers/ProviderController.cs b/samples/OpenIdOfflineProvider/Controllers/ProviderController.cs
index 6487801..6502842 100644
--- a/samples/OpenIdOfflineProvider/Controllers/ProviderController.cs
+++ b/samples/OpenIdOfflineProvider/Controllers/ProviderController.cs
@@ -15,6 +15,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider.Controllers {
using System.Threading.Tasks;
using System.Web.Http;
+ using DotNetOpenAuth.Logging;
using DotNetOpenAuth.Messaging.Bindings;
using DotNetOpenAuth.OpenId;
using DotNetOpenAuth.OpenId.Provider;
@@ -22,6 +23,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider.Controllers {
public class ProviderController : ApiController {
private static readonly ICryptoKeyAndNonceStore store = new MemoryCryptoKeyAndNonceStore();
+ private static readonly ILog Logger = LogProvider.GetCurrentClassLogger();
private MainWindow MainWindow {
get { return MainWindow.Instance; }
}
@@ -38,7 +40,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider.Controllers {
var provider = new OpenIdProvider(store);
IRequest request = await provider.GetRequestAsync(this.Request);
if (request == null) {
- App.Logger.Error("A request came in that did not carry an OpenID message.");
+ Logger.Error("A request came in that did not carry an OpenID message.");
return new HttpResponseMessage(HttpStatusCode.BadRequest) {
Content = new StringContent("<html><body>This is an OpenID Provider endpoint.</body></html>", Encoding.UTF8, "text/html"),
};