diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-29 07:03:28 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-29 07:03:28 -0800 |
commit | bf44c99aecf25c34f73f7fd898ab5536e2afdcc9 (patch) | |
tree | 3ef15ec19666aafceb9e53b32263e16c0ac626b3 /projecttemplates/MvcRelyingParty/Controllers/AccountController.cs | |
parent | 29d9694640f782d5ad0abc6550067b252a4ac194 (diff) | |
download | DotNetOpenAuth-bf44c99aecf25c34f73f7fd898ab5536e2afdcc9.zip DotNetOpenAuth-bf44c99aecf25c34f73f7fd898ab5536e2afdcc9.tar.gz DotNetOpenAuth-bf44c99aecf25c34f73f7fd898ab5536e2afdcc9.tar.bz2 |
Added privacy policy to sreg request.
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Controllers/AccountController.cs')
-rw-r--r-- | projecttemplates/MvcRelyingParty/Controllers/AccountController.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs b/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs index 48f2e53..4cf3d71 100644 --- a/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs +++ b/projecttemplates/MvcRelyingParty/Controllers/AccountController.cs @@ -64,14 +64,6 @@ } /// <summary> - /// Gets the URL that the Provider should return the user to after authenticating. - /// </summary> - /// <value>An absolute URL.</value> - public Uri ReturnTo { - get { return new Uri(Request.Url, Url.Action("LogOnReturnTo")); } - } - - /// <summary> /// Prepares a web page to help the user supply his login information. /// </summary> /// <returns>The action result.</returns> @@ -92,7 +84,7 @@ Identifier userSuppliedIdentifier; if (Identifier.TryParse(openid_identifier, out userSuppliedIdentifier)) { try { - var request = this.RelyingParty.CreateRequest(openid_identifier, this.Realm, this.ReturnTo); + var request = this.RelyingParty.CreateRequest(openid_identifier, this.Realm, Url.ActionFull("LogOnReturnTo")); request.SetUntrustedCallbackArgument("rememberMe", rememberMe ? "1" : "0"); // This might be signed so the OP can't send the user to a dangerous URL. @@ -107,6 +99,7 @@ request.AddExtension(new ClaimsRequest { Email = DemandLevel.Require, FullName = DemandLevel.Request, + PolicyUrl = Url.ActionFull("PrivacyPolicy", "Home"), }); return request.RedirectingResponse.AsActionResult(); |