summaryrefslogtreecommitdiffstats
path: root/samples/OAuthAuthorizationServer/Controllers
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-27 21:33:17 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-28 16:33:00 -0700
commit6877b41cb57087bc6ecefcfc5a0f9534a33b2ba8 (patch)
tree3fd521b90176620d43e5d43687a1bb47c5edaa57 /samples/OAuthAuthorizationServer/Controllers
parentc52a9ba18857119812d5338f23a4c0af5c21a314 (diff)
downloadDotNetOpenAuth-6877b41cb57087bc6ecefcfc5a0f9534a33b2ba8.zip
DotNetOpenAuth-6877b41cb57087bc6ecefcfc5a0f9534a33b2ba8.tar.gz
DotNetOpenAuth-6877b41cb57087bc6ecefcfc5a0f9534a33b2ba8.tar.bz2
Removes some optional cancellation tokens that don't work with all server configurations.
Diffstat (limited to 'samples/OAuthAuthorizationServer/Controllers')
-rw-r--r--samples/OAuthAuthorizationServer/Controllers/AccountController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/OAuthAuthorizationServer/Controllers/AccountController.cs b/samples/OAuthAuthorizationServer/Controllers/AccountController.cs
index 336f9bd..9c755ea 100644
--- a/samples/OAuthAuthorizationServer/Controllers/AccountController.cs
+++ b/samples/OAuthAuthorizationServer/Controllers/AccountController.cs
@@ -23,13 +23,13 @@
public async Task<ActionResult> LogOn(LogOnModel model, string returnUrl) {
if (ModelState.IsValid) {
var rp = new OpenIdRelyingParty();
- var request = await rp.CreateRequestAsync(model.UserSuppliedIdentifier, Realm.AutoDetect, new Uri(Request.Url, Url.Action("Authenticate")), Response.ClientDisconnectedToken);
+ var request = await rp.CreateRequestAsync(model.UserSuppliedIdentifier, Realm.AutoDetect, new Uri(Request.Url, Url.Action("Authenticate")));
if (request != null) {
if (returnUrl != null) {
request.AddCallbackArguments("returnUrl", returnUrl);
}
- var response = await request.GetRedirectingResponseAsync(Response.ClientDisconnectedToken);
+ var response = await request.GetRedirectingResponseAsync();
return response.AsActionResult();
} else {
ModelState.AddModelError(string.Empty, "The identifier you supplied is not recognized as a valid OpenID Identifier.");
@@ -42,7 +42,7 @@
public async Task<ActionResult> Authenticate(string returnUrl) {
var rp = new OpenIdRelyingParty();
- var response = await rp.GetResponseAsync(Request, Response.ClientDisconnectedToken);
+ var response = await rp.GetResponseAsync(Request);
if (response != null) {
switch (response.Status) {
case AuthenticationStatus.Authenticated: