View Source Ash.Error.Forbidden.Policy exception (ash v3.0.0-rc.40)

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

Link to this function

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

View Source

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.
Link to this function

report(error, opts \\ [])

View Source

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.