Interface CustomAuthorization
- All Known Implementing Classes:
AlwaysFail
,FreeIPAAz
,GithubTeamRule
,JavaScriptAz
,ManagerAuthorization
,RBACAuthorization
,RBACBindingAuthorization
,UserHasSessionAz
public interface CustomAuthorization
-
Method Summary
Modifier and TypeMethodDescriptionReturn ths current workflowvoid
Initializes the custom AZ rule with the configurationboolean
isAuthorized
(AuthInfo subject, String... params) Determines if the subject in the parameter is authorized by this rulelistPossibleApprovers
(String... params) Provides a list of subjects that could be authorized based on this rule.void
Sets the config manager for access to Unison resources, run on each de-serializationvoid
setWorkflow
(Workflow wf) Sets the workflow this rule will be a part of.
-
Method Details
-
init
Initializes the custom AZ rule with the configuration- Parameters:
config
- Name/Value pairs- Throws:
AzException
-
loadConfigManager
Sets the config manager for access to Unison resources, run on each de-serialization- Parameters:
cfg
-- Throws:
AzException
-
setWorkflow
Sets the workflow this rule will be a part of. Called after cloning an instance of the rule for a particular workflow- Parameters:
wf
-- Throws:
AzException
-
isAuthorized
Determines if the subject in the parameter is authorized by this rule- Parameters:
subject
- Subject to be testedparams
- List of optional values specific to this call- Returns:
- True if authorized, False if not
- Throws:
AzException
-
listPossibleApprovers
Provides a list of subjects that could be authorized based on this rule. The value of each list item should be the distinguished name of the user in Unison- Parameters:
params
- List of optional values specific to this call- Returns:
- Throws:
AzException
-
getWorkflow
-