public ClaimTypeController( ClaimTypeManager claimTypeManager, IMapper mapper ) { m_claimTypeManager = claimTypeManager; m_mapper = mapper; }
public async Task <IdentityClaimTypeDto> CreateAsync(IdentityClaimTypeCreateDto input) { var claimType = new IdentityClaimType(GuidGenerator.Create(), input.Name, input.Required, false, input.Regex, input.RegexDescription, input.Description, input.ValueType); input.MapExtraPropertiesTo(claimType); await ClaimTypeManager.CreateAsync(claimType); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <IdentityClaimType, IdentityClaimTypeDto>(claimType)); }
public ViewModelBuilder( IViewModelFactory viewModelFactory, UserManager userManager, RoleManager roleManager, ClaimTypeManager claimTypeManager, PermissionManager permissionManager, ResourcePermissionManager resourcePermissionManager, ApiResourceManager apiResourceManager, ResourcePermissionTypeActionManager resourcePermissionTypeActionManager, ClientManager clientManager, IdentityResourceManager identityResourceManager, GrantTypeManager grantTypeManager, IdentityUserManager identityUserManager, ResourcePermissionTypeManager resourcePermissionTypeManager, DynamicModuleManager dynamicModuleManager, DynamicModuleProvider dynamicModuleProvider, IFileResourceManager fileResourceManager, IMapper mapper, IModuleLocalization moduleLocalization, HashManager hashManager, ScopeManager scopesManager) { m_viewModelFactory = viewModelFactory; m_userManager = userManager; m_roleManager = roleManager; m_claimTypeManager = claimTypeManager; m_permissionManager = permissionManager; m_resourcePermissionManager = resourcePermissionManager; m_resourcePermissionTypeActionManager = resourcePermissionTypeActionManager; m_apiResourceManager = apiResourceManager; m_clientManager = clientManager; m_identityResourceManager = identityResourceManager; m_grantTypeManager = grantTypeManager; m_identityUserManager = identityUserManager; m_resourcePermissionTypeManager = resourcePermissionTypeManager; m_dynamicModuleManager = dynamicModuleManager; m_dynamicModuleProvider = dynamicModuleProvider; m_fileResourceManager = fileResourceManager; m_mapper = mapper; m_moduleLocalization = moduleLocalization; this.m_hashManager = hashManager; m_scopesManager = scopesManager; }
public async Task <IdentityClaimTypeDto> UpdateAsync(Guid id, IdentityClaimTypeUpdateDto input) { var claimType = await ClaimTypeRepository.GetAsync(id); claimType.ConcurrencyStamp = input.ConcurrencyStamp; claimType.SetName(input.Name); claimType.SetValueType(input.ValueType); claimType.Required = input.Required; claimType.Description = input.Description; claimType.Regex = input.Regex; claimType.RegexDescription = input.RegexDescription; input.MapExtraPropertiesTo(claimType); await ClaimTypeManager.UpdateAsync(claimType); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <IdentityClaimType, IdentityClaimTypeDto>(claimType)); }
public ClaimsInternalApiV1Controller( ClaimTypeManager claimTypeManager, IdentityUserManager identityUserManager ) : base(identityUserManager) { m_claimTypeManager = claimTypeManager; }