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

Decides whether to accept or deny a request for publishing an event.

Link to this section Summary

Link to this section Functions

Link to this function

check_authorization(request, cloud_event)

View Source

Specs

check_authorization(
  RIG.AuthorizationCheck.Request.t(),
  RigCloudEvents.CloudEvent.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.