This commit is contained in:
Paul Schneider 2016-06-07 14:32:43 +02:00
commit fa34ed249b
233 changed files with 4000 additions and 1396 deletions

View file

@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace Yavsc
{
public class Application : IApplication
{
[Key]
public string ApplicationID { get; set; }
public string DisplayName { get; set; }
public string RedirectUri { get; set; }
public string LogoutRedirectUri { get; set; }
public string Secret { get; set; }
}
}

10
Yavsc/Model/Auth/Scope.cs Normal file
View file

@ -0,0 +1,10 @@
namespace Yavsc.Models.Auth {
public class Scope {
public string Id { get; set; }
public string Description { get; set; }
}
}

View file

@ -0,0 +1,20 @@
namespace Yavsc.Models.Auth {
public class UserCredential {
public string UserId { get; set; }
public OAuth2Tokens Tokens { get; set; }
public UserCredential(string userId, OAuth2Tokens tokens)
{
UserId = userId;
Tokens = tokens;
}
public string GetHeader()
{
return Tokens.TokenType+" "+Tokens.AccessToken;
}
}
}