ash-project / spark

Tooling for building DSLs in Elixir
MIT License
105 stars 23 forks source link

Dynamic extensions #21

Closed jimsynz closed 1 year ago

jimsynz commented 1 year ago

Allow extensions to extend the DSL of other extensions at specific paths. This is required for custom strategies to actually work as intended in ash_authentication.

Example:

defmodule User do
  use Ash.Resource, extensions: [AshAuthentication, MyCustomStrategy]

  authentication do
     strategies do
       my_custom_strategy()
     end
  end
end
zachdaniel commented 1 year ago

Implemented in main :)