ExOauth2Provider v0.5.0 ExOauth2Provider.AccessGrants.AccessGrant View Source
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
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: Ecto.Schema.t()
t() :: Ecto.Schema.t()
Link to this section Functions
Link to this macro
access_grant_fields() View Source (macro)
Link to this function
changeset(grant, params, config)
View Source
changeset(grant, params, config)
View Source
changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()
changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()
Link to this function
put_token(changeset)
View Source
put_token(changeset)
View Source
put_token(Ecto.Changeset.t()) :: Ecto.Changeset.t()
put_token(Ecto.Changeset.t()) :: Ecto.Changeset.t()