diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-30 08:12:31 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-30 08:12:31 -0700 |
commit | 5625a18030037a0f088cd3e3581e80ccb68ab187 (patch) | |
tree | c57efbad49e3905f3c805fa0392843c41aaf0a58 /samples/OAuthServiceProvider/Members/Authorize.aspx.cs | |
parent | 08d6900d3de1f68d77e1253913d66734b7b42a0c (diff) | |
download | DotNetOpenAuth-5625a18030037a0f088cd3e3581e80ccb68ab187.zip DotNetOpenAuth-5625a18030037a0f088cd3e3581e80ccb68ab187.tar.gz DotNetOpenAuth-5625a18030037a0f088cd3e3581e80ccb68ab187.tar.bz2 |
Simplified OAuth 2 API a bit.
Diffstat (limited to 'samples/OAuthServiceProvider/Members/Authorize.aspx.cs')
-rw-r--r-- | samples/OAuthServiceProvider/Members/Authorize.aspx.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/OAuthServiceProvider/Members/Authorize.aspx.cs b/samples/OAuthServiceProvider/Members/Authorize.aspx.cs index 3fdcdbd..48a7897 100644 --- a/samples/OAuthServiceProvider/Members/Authorize.aspx.cs +++ b/samples/OAuthServiceProvider/Members/Authorize.aspx.cs @@ -32,7 +32,7 @@ throw new HttpException((int)HttpStatusCode.BadRequest, "Missing authorization request."); } - client = Global.DataContext.Clients.First(c => c.ClientIdentifier == this.pendingRequest.ClientIdentifier); + this.client = Global.DataContext.Clients.First(c => c.ClientIdentifier == this.pendingRequest.ClientIdentifier); var authServer = new OAuth2AuthorizationServer(); if (authServer.CanBeAutoApproved(this.pendingRequest)) { @@ -41,7 +41,7 @@ if (!IsPostBack) { this.desiredAccessLabel.Text = OAuthUtilities.JoinScopes(this.pendingRequest.Scope); - this.consumerLabel.Text = client.Name; + this.consumerLabel.Text = this.client.Name; // Generate an unpredictable secret that goes to the user agent and must come back // with authorization to guarantee the user interacted with this page rather than @@ -60,7 +60,7 @@ this.AuthorizationSecret = null; // clear one time use secret this.multiView.SetActiveView(this.AuthGranted); - client.ClientAuthorizations.Add( + this.client.ClientAuthorizations.Add( new ClientAuthorization { Scope = OAuthUtilities.JoinScopes(this.pendingRequest.Scope), User = Global.LoggedInUser, |