Liking cljdoc? Tell your friends :D

puppetlabs.trapperkeeper.services.authorization.authorization-core


acl-func-mapclj

A function map to allow a programmatic execution of allow/deny directives

A function map to allow a programmatic execution of allow/deny directives
sourceraw docstring

add-aclclj

(add-acl rule config-map)

Add various ACL to the incoming rule, based on content of the config-map

Add various ACL to the incoming rule, based on content of the config-map
sourceraw docstring

add-query-paramsclj

(add-query-params rule {{:keys [query-params]} :match-request})

Add any query parameters specified in configuration to the rule.

Add any query parameters specified in configuration to the rule.
sourceraw docstring

canonicalize-aclclj

(canonicalize-acl config-value)

Inputs: [config-value] Returns: acl/ACEConfig

Inputs: [config-value]
Returns: acl/ACEConfig
sourceraw docstring

config->ruleclj

(config->rule m)

Inputs: [m] Returns: rules/Rule

Given a rule expressed as a map in the configuration return a Rule suitable for use in a list with the allowed? function.

This assumes the configuration has been validated via validate-auth-config-rule!.

Inputs: [m]
Returns: rules/Rule

Given a rule expressed as a map in the configuration return a Rule suitable
 for use in a list with the allowed? function.

 This assumes the configuration has been validated via
 `validate-auth-config-rule!`.
sourceraw docstring

pprint-ruleclj

(pprint-rule rule)
source

transform-configclj

(transform-config config)

Inputs: [config] Returns: [rules/Rule]

Transforms the (validated) authorization service config into a list of Rules that work with the authorization code. Assumes config has been validated via validate-auth-config!.

Inputs: [config]
Returns: [rules/Rule]

Transforms the (validated) authorization service config into a list of Rules
 that work with the authorization code. Assumes config has been validated via
 `validate-auth-config!`.
sourceraw docstring

valid-method?clj

(valid-method? rule)

Returns true if the given rule contains either a valid method, or no specified method.

Returns true if the given rule contains either a valid method,
or no specified method.
sourceraw docstring

valid-methodsclj

HTTP methods which are allowed to be configured in a rule.

HTTP methods which are allowed to be configured in a rule.
sourceraw docstring

validate-ace-config-map!clj

(validate-ace-config-map! config-value)

Inputs: [config-value :- (schema/pred map? "map?")]

Inputs: [config-value :- (schema/pred map? "map?")]
sourceraw docstring

validate-auth-config!clj

(validate-auth-config! config)

Validates the given authorization service configuration. If an invalid configuration is found an IllegalArgumentException will be thrown, otherwise the input config will be returned.

Validates the given authorization service configuration. If an invalid
configuration is found an IllegalArgumentException will be thrown, otherwise
the input config will be returned.
sourceraw docstring

validate-auth-config-rule!clj

(validate-auth-config-rule! rule)

Tests to see if the given map contains the proper data to define an auth rule. Returns the provided rule if successful, otherwise throws an exception with a useful error message.

Tests to see if the given map contains the proper data to define an auth
rule. Returns the provided rule if successful, otherwise throws an exception
with a useful error message.
sourceraw docstring

validate-regex-backreferences!clj

(validate-regex-backreferences! rule)

Validates that allow and deny back-references actually exist as capture groups in the path regex. Throws an exception if a back-reference refers to a capture group that doesn't exist.

Validates that allow and deny back-references actually exist as capture
groups in the path regex. Throws an exception if a back-reference refers
to a capture group that doesn't exist.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close