# `Backplane.Oauth.Authorization.Scope`
[🔗](https://github.com/gsmlg-opt/backplane/blob/v1.10.77/apps/backplane_oauth/lib/backplane/oauth/authorization/scope.ex#L1)

Check against given params and return the corresponding scopes

# `authorize`

```elixir
@spec authorize(
  params :: [
    scope: String.t(),
    against: %{
      optional(:client) =&gt; Backplane.Oauth.Client.t(),
      optional(:resource_owner) =&gt; struct(),
      optional(:token) =&gt; Backplane.Oauth.Token.t()
    }
  ]
) :: {:ok, scope :: String.t()} | {:error, Backplane.Oauth.Error.t()}
```

Authorize the given scope according to the given client.

## Examples
    iex> authorize(%{scope: "scope", client: %Client{...}})
    {:ok, "scope"}

---

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