mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 05:13:10 +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.
19 lines
299 B
Elixir
19 lines
299 B
Elixir
defmodule Example.Schema do
|
|
@moduledoc false
|
|
use Absinthe.Schema
|
|
|
|
@apis [Example]
|
|
|
|
use AshGraphql, apis: @apis
|
|
|
|
query do
|
|
end
|
|
|
|
def context(ctx) do
|
|
AshGraphql.add_context(ctx, @apis)
|
|
end
|
|
|
|
def plugins do
|
|
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
|
|
end
|
|
end
|