summaryrefslogtreecommitdiffstats
path: root/projecttemplates/MvcRelyingParty/Models
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Models')
-rw-r--r--projecttemplates/MvcRelyingParty/Models/AccountAuthorizeModel.cs14
-rw-r--r--projecttemplates/MvcRelyingParty/Models/AccountInfoModel.cs25
2 files changed, 39 insertions, 0 deletions
diff --git a/projecttemplates/MvcRelyingParty/Models/AccountAuthorizeModel.cs b/projecttemplates/MvcRelyingParty/Models/AccountAuthorizeModel.cs
new file mode 100644
index 0000000..0fbd9f4
--- /dev/null
+++ b/projecttemplates/MvcRelyingParty/Models/AccountAuthorizeModel.cs
@@ -0,0 +1,14 @@
+namespace MvcRelyingParty.Models {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Web;
+
+ public class AccountAuthorizeModel {
+ public string ConsumerApp { get; set; }
+
+ public bool IsUnsafeRequest { get; set; }
+
+ public string VerificationCode { get; set; }
+ }
+}
diff --git a/projecttemplates/MvcRelyingParty/Models/AccountInfoModel.cs b/projecttemplates/MvcRelyingParty/Models/AccountInfoModel.cs
new file mode 100644
index 0000000..787b8df
--- /dev/null
+++ b/projecttemplates/MvcRelyingParty/Models/AccountInfoModel.cs
@@ -0,0 +1,25 @@
+namespace MvcRelyingParty.Models {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Web;
+ using RelyingPartyLogic;
+
+ public class AccountInfoModel {
+ public string FirstName { get; set; }
+
+ public string LastName { get; set; }
+
+ public string EmailAddress { get; set; }
+
+ public IList<AuthorizedApp> AuthorizedApps { get; set; }
+
+ public IList<AuthenticationToken> AuthenticationTokens { get; set; }
+
+ public class AuthorizedApp {
+ public string Token { get; set; }
+
+ public string AppName { get; set; }
+ }
+ }
+}