# `Attesto.Plug.ResourceScopes`
[🔗](https://github.com/XukuLLC/attesto/blob/v2.28.0/lib/attesto/plug/resource_scopes.ex#L2)

Check the verified scope list assigned by `Attesto.Plug.ResourceAuthenticate`.

Accepts a bare scope list or `:scope` / `:scopes`, plus `:scope_hierarchy`.
Requirements must be unique concrete RFC 6749 scope tokens. `:claims_key`
defaults to `:attesto_claims` and `:scopes_key` to `:attesto_scopes`.
`:send_error`, `:www_authenticate`, `:no_store`, `:resource_metadata` and
`:allow_http` pass to `Attesto.Plug.OAuthError`. A challenge lists every
required operation scope; a granted broader scope can satisfy a hierarchy.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
