Пример #1
0
		static void AddSystemAccess(AuthData auth, string accountStorageKey)
		{

			auth.Users.Add(Constants.ClusterNodeUser, new UserInfo
			{
				Password = accountStorageKey,
				Claims = new[] { "all:write" }
			});
		}
Пример #2
0
        public static AuthData Default()
        {
            var data = new AuthData();
            data.Users.Add(Constants.DefaultLogin, new UserInfo() {
                Password = Constants.DefaultPassword,
                Claims = new[] { "all:write" },
            });

            return data;
        }
Пример #3
0
		public static ApiImplementation Create(ICloudFactory account, LeaderInfoPoller poller, AuthData auth) {
			return new ApiImplementation(account, poller);
		}
Пример #4
0
			public UserValidator(AuthData auth)
			{
				_auth = auth;
			}