View Source Ash.Error.Forbidden.Policy exception (ash v3.4.48)

Raised when policy authorization for an action fails

Summary

Functions

Print a report of an authorization failure from authorization information.

Print a report of an authorization failure from a forbidden error

Functions

exception()

get_breakdown(facts, filter, policies, opts \\ [])

Print a report of an authorization failure from authorization information.

Options:

  • :help_text?: Defaults to true. Displays help text at the top of the policy breakdown.
  • :success?: Defaults to false. Changes the messaging/graphics around to indicate successful policy authorization.
  • :must_pass_strict_check?: Defaults to false. Adds a message about this authorization requiring passing strict check.

report(forbidden)

Print a report of an authorization failure from a forbidden error

Options:

  • :help_text?: Defaults to true. Displays help text at the top of the policy breakdown.

report(error, opts \\ [])