/// <exception cref="ArgumentNullException">Throw when publicClientId is null or empty</exception> public IdentityTokenOAuthProvider( IIdentityTokenPropertiesFormater <User, Guid> propertiesFormatter, string publicClientId) { if (string.IsNullOrEmpty(publicClientId)) { throw new ArgumentNullException("publicClientId"); } _context = new DataAccessContext(); _publicClientId = publicClientId; _propertiesFormatter = propertiesFormatter; var userStore = new UserStore <User, Role, Guid, UserLogin, UserRole, Claim>(_context); _userManager = new ApplicationUserManager(userStore); }
public ApplicationOAuthProvider( IIdentityTokenPropertiesFormater <User, Guid> propertiesFormatter) : base(propertiesFormatter, "DataAccessClientId") { _authClientRepository = new AuthClientRepository(_context); }