static void Main(string[] args) { Console.WriteLine("Welcome to Graph Api Daemon Application"); //Get the AuthenticationIntegration instance IAuthenticationRepository iAuthenticationRepository = Factory.CreateAuthenticationIntegration(); //Get the KeyVaultAccessImplementatation instance IKeyVaultAccessRepository iKeyVaultAccessRepository = Factory.CreateKeyVaultAccessImplementation(); //Get the client secrect from azure key vault to access Graph api app Task <string> keyVaultSecret = iKeyVaultAccessRepository.GetClientSecretFromKeyVault(iAuthenticationRepository); keyVaultSecret.Wait(); //Get the TokenImplementation instance ITokenProcessorRepository iTokenProcessorRepository = Factory.CreateTokenImplementation(); //Get the AuthenticationIntegration instance IAuthenticationRepository iAuthRepository = Factory.CreateAuthenticationIntegration(); Task <string> token = iTokenProcessorRepository.GetGraphApiAccessToken(iAuthRepository, keyVaultSecret.Result.ToString()); token.Wait(); IUserDetailsRepository iUserDetailsRepository = Factory.CreateUserImplementation(); //Get the AuthenticationIntegration instance IAuthenticationRepository iARepository = Factory.CreateAuthenticationIntegration(); Task <List <User> > users = iUserDetailsRepository.GetUserDetails(iARepository, token.Result.ToString()); users.Wait(); //Display the user principal name foreach (var user in users.Result) { Console.WriteLine($"User Principal Name:{user.UserPrincipalName}"); } Console.ReadKey(); }
public RegistrationService() { IDatabaseFactory databaseFactory = new DatabaseFactory(); UserDetailsRepository = new UserDetailsRepository(databaseFactory); UnitOfWork = new UnitOfWork(databaseFactory); LoginDetailsRepository = new LoginDetailsRepository(databaseFactory); }
public AccountService(IUserDetailsRepository userDetailsRepository, IUserPreferencesRepository userPreferencesRepository, IUserSnapsRepository userSnapsRepository, IFriendRepository friendsRepository) { _userDetailsRepository = userDetailsRepository; _userPreferencesRepository = userPreferencesRepository; _userSnapsRepository = userSnapsRepository; _friendsRepository = friendsRepository; }
public AuthController(AppContext appContext, IBaseUnitOfWork unitOfWork, IUserRepository userRepository, IUserDetailsRepository userDetailsRepository, ISignInManager singInManager, IUserManager userManager) { _appContext = appContext; _unitOfWork = unitOfWork; _userRepository = userRepository; _userDetailsRepository = userDetailsRepository; _singInManager = singInManager; _userManager = userManager; }
public UserDetailService( ILogger <UserDetailService> logger, IUserDetailsRepository userDetailsRepository, IMapper mapper) { _logger = logger; _userDetailsRepository = userDetailsRepository; _mapper = mapper; }
public UserUnitOfWork(Entities context, IUserRepository userRepo, IUserDetailsRepository userDetailsRepo, IRolesRepository roleRepo ) : base(context) { UserDetailsRepository = userDetailsRepo; UserRepository = userRepo; RolesRepository = roleRepo; }
public UserService(IUnitOfWork dataBase, IUserDetailsRepository userDetailsRepository, IPermissionRepository permissionRepository, UserManager <DutUser> userManager, RoleManager <DutRole> roleManager, SignInManager <DutUser> signInManager) { _dataBase = dataBase; _userDetailsRepository = userDetailsRepository; _permissionRepository = permissionRepository; _userManager = userManager; _roleManager = roleManager; _signInManager = signInManager; }
public LoginService(UserManager <AppUser> userManager, RoleManager <AppRole> roleManager, IUserDetailsRepository userDetailsRepository, IOptions <JwtIssuerOptions> jwtOptions, IMapper mapper, ITokenGenerator tokenGenerator, IOptions <AppSettings> appSettings) { _userDetailsRepository = userDetailsRepository; _jwtOptions = jwtOptions.Value; _mapper = mapper; _tokenGenerator = tokenGenerator; _appSettings = appSettings.Value; _userManager = userManager; _roleManager = roleManager; if (_jwtSecurityTokenHandler == null) { _jwtSecurityTokenHandler = new JwtSecurityTokenHandler(); } }
public UserDetailsController(IUserDetailsRepository iuserDetailsRepository) { _iuserDetailsRepository = iuserDetailsRepository; }
public UserDetailsService(IUserDetailsRepository detailsRepository) { Detailsrepository = detailsRepository; }
public InitController(IUserDetailsRepository repository) { _repository = repository; }
public UserDetailsService(IUnitOfWork unitOfWork, IUserDetailsRepository usrDetailRep, IUserRepository usrRep) : base(unitOfWork) { _usrDetailRep = usrDetailRep; _usrRep = usrRep; }
public UserDetailsController(IUserDetailsRepository repository, DataContext context) { this.context = context; this.repository = repository; }
public UserDetailsServices(IUserDetailsRepository repository, IOptions <AppSettings> appSettings) { _repository = repository; _appSettings = appSettings.Value; }
public UserDetailsService(IUserDetailsRepository userDetails) { _userDetails = userDetails; }
/// <summary> /// Constructor /// </summary> public RegisterUserService(IUserRepository userRepository, IUserDetailsRepository userDetailsRepository) { this.userRepository = userRepository; this.userDetailsRepository = userDetailsRepository; }
public UserService(IUserDetailsRepository userRepository, IMapper mapper) { _userRepository = userRepository; _mapper = mapper; }
public OverviewController(IUserDetailsRepository _userDetailRepository, ILogger <OverviewController> logger) { userDetailRepository = _userDetailRepository; _logger = logger; }
public UserDetailsService(IUserDetailsRepository repository) { this._repository = repository; }
/// <summary> /// Constructor /// </summary> public RegisterUserService(IUserRepository userRepository, IUserDetailsRepository userDetailsRepository) { this.userRepository = userRepository; this.userDetailsRepository = userDetailsRepository; }
public HomeController(IUserDetailsRepository userRepository) { this.userRepository = userRepository; }
public UserManager(IUserDetailsRepository userDetailsRepository) { _userDetailsRepository = userDetailsRepository; }
// private readonly IPaymentRepository _paymentRepository; public UserDetailsService(IUserDetailsRepository userDetailsRepository) { _userDetailsRepository = userDetailsRepository; }
public UserDetailsController(IUserDetailsRepository repository) { _userDetailsRepository = repository; }
public AccountController(IUserRepository userRepository, IUserDetailsRepository userDetailsRepository) { _userRepository = userRepository; _userDetailsRepository = userDetailsRepository; }
public UserDetailsController(IUserDetailsRepository userDetailsRepository) { this._userDetailsRepository = userDetailsRepository; }
public UserDetailsEngine(IUserDetailsRepository repository) { _repository = repository; }
public UserDetailsController(IUserDetailsRepository uRepo, IMapper mapper) { _uRepo = uRepo; _mapper = mapper; }
public UserDetailsApiController(IUserDetailsRepository userDetailsRepository) { _userDetailsRepository = userDetailsRepository; }