mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 13:24:20 +12:00
1c8f138c67
Highlights: * Replaced `AshAuthentication.Provider` with the much more flexible `AshAuthentication.Strategy`. * Moved strategies to within the `authentication` DSL using entities and removed excess extensions. * Added a lot more documentation and test coverage.
16 lines
311 B
Elixir
16 lines
311 B
Elixir
defmodule Example.UserIdentity do
|
|
@moduledoc false
|
|
use Ash.Resource,
|
|
data_layer: AshPostgres.DataLayer,
|
|
extensions: [AshAuthentication.UserIdentity]
|
|
|
|
user_identity do
|
|
api Example
|
|
user_resource(Example.User)
|
|
end
|
|
|
|
postgres do
|
|
table "user_identities"
|
|
repo(Example.Repo)
|
|
end
|
|
end
|