Returns true when the changeset/query has context.private.ash_scim?
set, which AshScim.Router does for every internal Ash call.
Add a bypass for this check on any resource exposed via SCIM so the router's internal queries (read, get, create, update, destroy, load, bulk_destroy) aren't blocked by your application's user-facing policies:
policies do
bypass AshScim.Checks.AshScimInteraction do
authorize_if always()
end
# ...your normal policies...
endThis mirrors the
AshAuthentication.Checks.AshAuthenticationInteraction pattern and serves
the same purpose: keep user-facing policies in charge of user-facing
actions, while letting the extension's plumbing run unimpeded.
Summary
Functions
Callback implementation for Ash.Policy.Check.eager_evaluate?/0.
Callback implementation for Ash.Policy.Check.init/1.
Callback implementation for Ash.Policy.Check.prefer_expanded_description?/0.
Callback implementation for Ash.Policy.Check.requires_original_data?/2.
Callback implementation for Ash.Policy.Check.strict_check/3.
Callback implementation for Ash.Policy.Check.type/0.
Functions
Callback implementation for Ash.Policy.Check.eager_evaluate?/0.
Callback implementation for Ash.Policy.Check.init/1.
Callback implementation for Ash.Policy.Check.prefer_expanded_description?/0.
Callback implementation for Ash.Policy.Check.requires_original_data?/2.
Callback implementation for Ash.Policy.Check.strict_check/3.
Callback implementation for Ash.Policy.Check.type/0.