ExOauth2Provider v0.5.4 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 section Functions
Link to this function
changeset(grant, params, config)
View Sourcechangeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()
Link to this function
put_token(changeset)
View Sourceput_token(Ecto.Changeset.t()) :: Ecto.Changeset.t()