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

Functions

Link to this macro

access_grant_fields()

View Source (macro)
Link to this function

changeset(grant, params, config)

View Source
@spec changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()
@spec put_token(Ecto.Changeset.t()) :: Ecto.Changeset.t()