ExOauth2Provider v0.5.2 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 macro

access_grant_fields() View Source (macro)

Link to this function

changeset(grant, params, config) View Source
changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()