diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-26 07:32:50 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-26 07:32:50 -0700 |
commit | cb8528f3bace8ffdc11c6b0c5d5a460697fa48c9 (patch) | |
tree | aafa7d1074a06577c95022b5488e00d226dfb115 /projecttemplates | |
parent | ab2382fcbd345abad15f8fdd709438cbf5547351 (diff) | |
download | DotNetOpenAuth-cb8528f3bace8ffdc11c6b0c5d5a460697fa48c9.zip DotNetOpenAuth-cb8528f3bace8ffdc11c6b0c5d5a460697fa48c9.tar.gz DotNetOpenAuth-cb8528f3bace8ffdc11c6b0c5d5a460697fa48c9.tar.bz2 |
Collapsed the AuthorizationServerBase and AuthorizationServer classes.
Diffstat (limited to 'projecttemplates')
-rw-r--r-- | projecttemplates/MvcRelyingParty/Controllers/AccountController.cs | 2 | ||||
-rw-r--r-- | projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs b/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs index 6bd65df..0b5e0b6 100644 --- a/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs +++ b/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs @@ -58,7 +58,7 @@ var requestingClient = Database.DataContext.Clients.First(c => c.ClientIdentifier == pendingRequest.ClientIdentifier); // Consider auto-approving if safe to do so. - if (((OAuthAuthorizationServer)OAuthServiceProvider.AuthorizationServer.AuthorizationServer).CanBeAutoApproved(pendingRequest)) { + if (((OAuthAuthorizationServer)OAuthServiceProvider.AuthorizationServer.AuthorizationServerServices).CanBeAutoApproved(pendingRequest)) { var approval = OAuthServiceProvider.AuthorizationServer.PrepareApproveAuthorizationRequest(pendingRequest, HttpContext.User.Identity.Name); return OAuthServiceProvider.AuthorizationServer.Channel.PrepareResponse(approval).AsActionResult(); } diff --git a/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs b/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs index 8b33696..15b773d 100644 --- a/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs +++ b/projecttemplates/WebFormsRelyingParty/Members/OAuthAuthorize.aspx.cs @@ -36,7 +36,7 @@ namespace WebFormsRelyingParty.Members { this.scopeLabel.Text = HttpUtility.HtmlEncode(OAuthUtilities.JoinScopes(this.pendingRequest.Scope)); // Consider auto-approving if safe to do so. - if (((OAuthAuthorizationServer)OAuthServiceProvider.AuthorizationServer.AuthorizationServer).CanBeAutoApproved(this.pendingRequest)) { + if (((OAuthAuthorizationServer)OAuthServiceProvider.AuthorizationServer.AuthorizationServerServices).CanBeAutoApproved(this.pendingRequest)) { OAuthServiceProvider.AuthorizationServer.ApproveAuthorizationRequest(this.pendingRequest, HttpContext.Current.User.Identity.Name); } this.ViewState["AuthRequest"] = this.pendingRequest; |