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

Check against given params and return the corresponding resource owner

# `authorize`

```elixir
@spec authorize(
  [email: String.t(), password: String.t()]
  | [{:resource_owner, Backplane.Oauth.ResourceOwner.t()}]
) ::
  {:error,
   %Backplane.Oauth.Error{
     error: :invalid_resource_owner,
     error_description: String.t(),
     format: nil,
     redirect_uri: nil,
     state: term(),
     status: :unauthorized
   }}
  | {:ok, user :: Backplane.Oauth.ResourceOwner.t()}
```

Authorize the resource owner corresponding to the given params.

## Examples
    iex> authorize(id: "id")
    {:ok, %Backplane.Oauth.ResourceOwner{...}}

---

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