ExOauth2Provider v0.5.0 ExOauth2Provider.AccessTokens.AccessToken View Source
Handles the Ecto schema for access token.
Usage
Configure lib/my_project/oauth_access_tokens/oauth_access_token.ex
the following way:
defmodule MyApp.OauthAccessTokens.OauthAccessToken do
use Ecto.Schema
use ExOauth2Provider.AccessTokens.AccessToken
schema "oauth_access_tokens" do
access_token_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_token_fields() View Source (macro)
Link to this function
changeset(token, params, config \\ [])
View Source
changeset(token, params, config \\ [])
View Source
changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()
changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()