public ClientsController(IClientRepository apiResourceRepository, IPermissionGrantRepository permissionGrantRepository, IMapper mapper, IIdentityServerDbContext mateupDbContext) { _clientRepository = apiResourceRepository; _permissionGrantRepository = permissionGrantRepository; _mapper = mapper; _mateupDbContext = mateupDbContext; }
public CreateUserCommandValidator(IIdentityServerDbContext context) { _context = context; RuleFor(x => x.Email).NotEmpty().EmailAddress() .SetValidator(new UniqueIdentityDBValidator <CreateUserCommand>(context, true));; RuleFor(x => x.Password).NotEmpty() .Matches("[A-Z]").WithMessage("Password should have atleast one 1 upper case.") .Matches("[0-9]").WithMessage("Password should have atleast one 1 number."); }
public PersistedGrantsController(PersistentGrantRepository persistentGrantRepository, IMapper mapper, IIdentityServerDbContext mateupDbContext) { _persistentGrantRepository = persistentGrantRepository; _mapper = mapper; _mateupDbContext = mateupDbContext; }
public UniqueIdentityDBValidator(IIdentityServerDbContext context, bool isCreate) : base("{PropertyName} must be unique") { _context = context; _isCreate = isCreate; }
public IdentityResourceController(IdentityResourceRepository apiResourceRepository, IMapper mapper, IIdentityServerDbContext mateupDbContext) { _identityResourceRepository = apiResourceRepository; _mapper = mapper; _mateupDbContext = mateupDbContext; }
public ApiResourcesController(IApiResourceRepository apiResourceRepository, IObjectMapper <MateupHttpApiModule> mapper, IIdentityServerDbContext mateupDbContext) { _apiResourceRepository = apiResourceRepository; _mapper = mapper; _mateupDbContext = mateupDbContext; }