RIG.AuthorizationCheck.Subscription (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

Decides whether to allow or reject a subscription request.

Link to this section Summary

Functions

Returns module configuration.

Link to this section Functions

Link to this function

check_authorization(request)

View Source

Specs

check_authorization(RIG.AuthorizationCheck.Request.t()) ::
  :ok | {:error, :not_authorized}

Specs

config() :: any()

Returns module configuration.

If application environment contains values in Keyword or Map struct, defaults from macro usage will be recursively merged with application configuration.

If one of the configuration parameters does not exist or can not be resolved, raises ArgumentError.