summaryrefslogtreecommitdiffstats
path: root/samples/OAuthServiceProvider
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-26 07:45:42 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-26 07:45:42 -0700
commit08d6900d3de1f68d77e1253913d66734b7b42a0c (patch)
tree6fa161e694de71bec8dcb02aaa3a2e53641284fb /samples/OAuthServiceProvider
parentcb8528f3bace8ffdc11c6b0c5d5a460697fa48c9 (diff)
downloadDotNetOpenAuth-08d6900d3de1f68d77e1253913d66734b7b42a0c.zip
DotNetOpenAuth-08d6900d3de1f68d77e1253913d66734b7b42a0c.tar.gz
DotNetOpenAuth-08d6900d3de1f68d77e1253913d66734b7b42a0c.tar.bz2
StyleCop fixes
Diffstat (limited to 'samples/OAuthServiceProvider')
-rw-r--r--samples/OAuthServiceProvider/Members/Authorize.aspx.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/samples/OAuthServiceProvider/Members/Authorize.aspx.cs b/samples/OAuthServiceProvider/Members/Authorize.aspx.cs
index 1a4c78e..3fdcdbd 100644
--- a/samples/OAuthServiceProvider/Members/Authorize.aspx.cs
+++ b/samples/OAuthServiceProvider/Members/Authorize.aspx.cs
@@ -27,20 +27,20 @@
protected void Page_Load(object sender, EventArgs e) {
var getRequest = new HttpRequestInfo("GET", this.Request.Url, this.Request.RawUrl, new WebHeaderCollection(), null);
- pendingRequest = Global.AuthorizationServer.ReadAuthorizationRequest(getRequest);
- if (pendingRequest == null) {
+ this.pendingRequest = Global.AuthorizationServer.ReadAuthorizationRequest(getRequest);
+ if (this.pendingRequest == null) {
throw new HttpException((int)HttpStatusCode.BadRequest, "Missing authorization request.");
}
- client = Global.DataContext.Clients.First(c => c.ClientIdentifier == pendingRequest.ClientIdentifier);
+ client = Global.DataContext.Clients.First(c => c.ClientIdentifier == this.pendingRequest.ClientIdentifier);
var authServer = new OAuth2AuthorizationServer();
- if (authServer.CanBeAutoApproved(pendingRequest)) {
- Global.AuthorizationServer.ApproveAuthorizationRequest(pendingRequest, User.Identity.Name);
+ if (authServer.CanBeAutoApproved(this.pendingRequest)) {
+ Global.AuthorizationServer.ApproveAuthorizationRequest(this.pendingRequest, User.Identity.Name);
}
if (!IsPostBack) {
- this.desiredAccessLabel.Text = OAuthUtilities.JoinScopes(pendingRequest.Scope);
+ this.desiredAccessLabel.Text = OAuthUtilities.JoinScopes(this.pendingRequest.Scope);
this.consumerLabel.Text = client.Name;
// Generate an unpredictable secret that goes to the user agent and must come back
@@ -62,15 +62,15 @@
client.ClientAuthorizations.Add(
new ClientAuthorization {
- Scope = OAuthUtilities.JoinScopes(pendingRequest.Scope),
+ Scope = OAuthUtilities.JoinScopes(this.pendingRequest.Scope),
User = Global.LoggedInUser,
CreatedOnUtc = DateTime.UtcNow,
});
- Global.AuthorizationServer.ApproveAuthorizationRequest(pendingRequest, User.Identity.Name);
+ Global.AuthorizationServer.ApproveAuthorizationRequest(this.pendingRequest, User.Identity.Name);
}
protected void denyAccessButton_Click(object sender, EventArgs e) {
- Global.AuthorizationServer.RejectAuthorizationRequest(pendingRequest);
+ Global.AuthorizationServer.RejectAuthorizationRequest(this.pendingRequest);
}
}
} \ No newline at end of file