24 lines
639 B
Elixir
24 lines
639 B
Elixir
defmodule Mv.Accounts do
|
|
@moduledoc """
|
|
AshAuthentication specific domain to handle Authentication for users.
|
|
"""
|
|
use Ash.Domain,
|
|
extensions: [AshAdmin.Domain, AshPhoenix]
|
|
|
|
admin do
|
|
show? true
|
|
end
|
|
|
|
resources do
|
|
resource Mv.Accounts.User do
|
|
define :create_user, action: :create_user
|
|
define :list_users, action: :read
|
|
define :update_user, action: :update_user
|
|
define :destroy_user, action: :destroy
|
|
define :create_register_with_rauthy, action: :register_with_rauthy
|
|
define :read_sign_in_with_rauthy, action: :sign_in_with_rauthy
|
|
end
|
|
|
|
resource Mv.Accounts.Token
|
|
end
|
|
end
|