diff options
Diffstat (limited to 'source/Janrain.OpenId/Server/UntrustedReturnUrl.cs')
-rw-r--r-- | source/Janrain.OpenId/Server/UntrustedReturnUrl.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/Janrain.OpenId/Server/UntrustedReturnUrl.cs b/source/Janrain.OpenId/Server/UntrustedReturnUrl.cs new file mode 100644 index 0000000..77bf93e --- /dev/null +++ b/source/Janrain.OpenId/Server/UntrustedReturnUrl.cs @@ -0,0 +1,30 @@ +using System;
+using System.Collections;
+using System.Collections.Specialized;
+using System.Text;
+
+namespace Janrain.OpenId.Server
+{
+ public class UntrustedReturnUrl : ProtocolException
+ {
+
+ #region Private Members
+
+ private Uri _return_to;
+ private string _trust_root;
+
+ #endregion
+
+ #region Constructor(s)
+
+ public UntrustedReturnUrl(NameValueCollection query, Uri return_to, string trust_root)
+ : base(query, "return_to " + return_to.AbsoluteUri + " not under trust_root " + trust_root)
+ {
+ _return_to = return_to;
+ _trust_root = trust_root;
+ }
+
+ #endregion
+
+ }
+}
|