View Source Ash.Policy.Info (ash v2.17.0)

An authorization extension for ash resources.

For more information, see Ash.Policy.Authorizer

Summary

Functions

Gets the field policies relevant to a given field

Whether or not Ash policy authorizer is configured to log policy breakdowns

Whether or not Ash policy authorizer is configured to log successful policy breakdowns

Whether or not Ash policy authorizer is configured to show policy breakdowns in error messages

A utility to determine if a given query/changeset would pass authorization.

Types

Functions

Link to this function

default_access_type(resource)

View Source
Link to this function

describe_resource(resource)

View Source
Link to this function

field_policies(resource)

View Source
Link to this function

field_policies_for_field(resource, field)

View Source

Gets the field policies relevant to a given field

Whether or not Ash policy authorizer is configured to log policy breakdowns

Link to this function

log_successful_policy_breakdowns()

View Source

Whether or not Ash policy authorizer is configured to log successful policy breakdowns

Link to this function

show_policy_breakdowns?()

View Source

Whether or not Ash policy authorizer is configured to show policy breakdowns in error messages

Link to this function

strict_check(actor, query, api)

View Source

A utility to determine if a given query/changeset would pass authorization.

This is still experimental.