Skip to content

Make editable rules that apply for user creation #22

Description

@N7Remus
  • create rule table

  • Before user creation

assertRule(){
	for rule in getRulesByTenantId()
		param , method, value, errorMsg = getParametersFromRule(rule): 
		if validateRuleCondition(param, method, value):
			# user cannot be created, rejected by rule
			error(errorMsg) 
}
  • After user creation
gainRule(){
	for rule in getRulesByTenantId()
		param , method, value, action = getParametersFromRule(rule): 
		if validateRuleCondition(param, method, value):
			# user will gain permission, defined in action
			# example gain tenant 'admin' permission or group membership
			# action should have a service, method, and pre definded values
			action() 
}
  • create a way to reapply rules for already created users in a batch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions