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

Uses an external endpoint for deciding authorization.

Link to this section Summary

Link to this section Functions

Specs

check(url :: String.t(), request :: RIG.AuthorizationCheck.Request.t()) ::
  true | false | {:error, url :: String.t(), error :: any()}
Link to this function

check_or_log(base_url, request)

View Source

Specs

check_or_log(
  base_url :: String.t(),
  request :: RIG.AuthorizationCheck.Request.t()
) :: :ok | {:error, :not_authorized}