diff options
Diffstat (limited to 'src/OAuth/OAuthAuthorizationServer/Models')
-rw-r--r-- | src/OAuth/OAuthAuthorizationServer/Models/AccountAuthorizeModel.cs | 16 | ||||
-rw-r--r-- | src/OAuth/OAuthAuthorizationServer/Models/AccountModels.cs | 13 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/OAuth/OAuthAuthorizationServer/Models/AccountAuthorizeModel.cs b/src/OAuth/OAuthAuthorizationServer/Models/AccountAuthorizeModel.cs new file mode 100644 index 0000000..ee91416 --- /dev/null +++ b/src/OAuth/OAuthAuthorizationServer/Models/AccountAuthorizeModel.cs @@ -0,0 +1,16 @@ +namespace OAuthAuthorizationServer.Models { + using System; + using System.Collections.Generic; + using System.Linq; + using System.Web; + + using DotNetOpenAuth.OAuth2.Messages; + + public class AccountAuthorizeModel { + public string ClientApp { get; set; } + + public HashSet<string> Scope { get; set; } + + public EndUserAuthorizationRequest AuthorizationRequest { get; set; } + } +} diff --git a/src/OAuth/OAuthAuthorizationServer/Models/AccountModels.cs b/src/OAuth/OAuthAuthorizationServer/Models/AccountModels.cs new file mode 100644 index 0000000..32deb0b --- /dev/null +++ b/src/OAuth/OAuthAuthorizationServer/Models/AccountModels.cs @@ -0,0 +1,13 @@ +namespace OAuthAuthorizationServer.Models { + using System.ComponentModel; + using System.ComponentModel.DataAnnotations; + + public class LogOnModel { + [Required] + [DisplayName("OpenID")] + public string UserSuppliedIdentifier { get; set; } + + [DisplayName("Remember me?")] + public bool RememberMe { get; set; } + } +} |