Expected behavior
Expected the authentication to complete successfully.
Runtime
Elixir 1.16.1
Erlang/OTP 26
macOS Sonoma (Darwin 23.4.0)
ash 3.0.0-rc.21
ash_authentication 4.0.0-rc.6
ash_authentication_phoenix 2.0.0-rc.2
ash_phoenix 2.0.0-rc.4
ash_postgres 2.0.0-rc.7
Additional context
[warning] Unhandled error in form submission for MyApp.Accounts.User.sign_in_with_password
This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.
** (Ash.Error.Invalid.TenantRequired) Queries against the MyApp.Accounts.User resource require a tenant to be specified
[warning] Unhandled error in form submission for MyApp.Accounts.User.sign_in_with_password
This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.
** (Ash.Error.Invalid.TenantRequired) Queries against the MyApp.Accounts.User resource require a tenant to be specified
[warning] Unhandled error in form submission for MyApp.Accounts.User.sign_in_with_password
This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.
** (Ash.Error.Invalid.TenantRequired) Queries against the MyApp.Accounts.User resource require a tenant to be specified
[warning] Unhandled error in form submission for MyApp.Accounts.User.sign_in_with_password
This error was unhandled because Ash.Error.Invalid.TenantRequired does not implement the `AshPhoenix.FormData.Error` protocol.
** (Ash.Error.Invalid.TenantRequired) Queries against the MyApp.Accounts.User resource require a tenant to be specified
Issue submission requested by @zachdaniel as per Discord exchange
Describe the bug Having
sign_in_tokens_enabled?
set to true in a context multitenancy setup causes registration and authentication to fail.To Reproduce Please see this reproduction repo.
Expected behavior Expected the authentication to complete successfully.
Runtime
ash 3.0.0-rc.21
ash_authentication 4.0.0-rc.6
ash_authentication_phoenix 2.0.0-rc.2
ash_phoenix 2.0.0-rc.4
ash_postgres 2.0.0-rc.7
Additional context
Issue submission requested by @zachdaniel as per Discord exchange