View Source ExOauth2Provider.AccessGrants.AccessGrant (ExOauth2Provider v0.5.7)
Handles the Ecto schema for access grant.
Usage
Configure lib/my_project/oauth_access_grants/oauth_access_grant.ex
the following way:
defmodule MyApp.OauthAccessGrants.OauthAccessGrant do
use Ecto.Schema
use ExOauth2Provider.AccessGrants.AccessGrant
schema "oauth_access_grants" do
access_grant_fields()
timestamps()
end
end
Summary
Types
@type t() :: Ecto.Schema.t()
Functions
@spec changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()
@spec put_token(Ecto.Changeset.t()) :: Ecto.Changeset.t()